Answer the following questions true (T) or false (F)
1. Constructors are inherited. After all something has to initialize the inherited variables.
2. When class D is derived from class B, the derived class is usually smaller. Explain.
1. False
Explanation: None of constructors, destructors, operator assignment, and friend functions are inherited. Nevertheless, they are invoked by the constructors and destructor of the derived class.
2. False
Explanation: Smaller in this situation means has fewer member functions and perhaps fewer member variables. The derived class inherits the members of the base class and adds more of its own.
You might also like to view...
Access lists are which of the following? (Select all that apply.)
a. A basic form of firewall protection b. Basically a firewall c. An improvement over firewall protection d. A replacement for proxy servers
Use Paint Shop Pro to create a sprite that simulates a rotating planet. Modify Fig. 31.3 so that the sprite, animated with the Sprite control, rotates around a larger planet in the center of the page.
What will be an ideal response?
If an image named face.gif needs to be used as a bullet, the correct statement is ____.
A. list-style-image: face.gif; B. list-style-image: img="face.gif"; C. list-style-image: url(face.gif); D. list-style-image: src="face.img";
The ________ command divides a window into multiple panes
Fill in the blank(s) with correct word