A derived class object inherits all the members of the base class. Which of these remarks about the inherited member variables is true?
a. Inherited members are not accessible to the derived class functions so can safely be ignored
b. Inherited members are need to be allocated memory and should be initialized at creation of a derived class object.
c. Inherited members are will be automatically managed by the C++ runtime system, so can be safely ignored.
d. Inherited members’ memory allocation must be done by the base class constructor for the base class, which must be called.
e. The base class constructor is the most convenient place to initialize these inherited variables.
b) d) and e)
Explanation: These are the reasons you should always include a call to one of the base class constructors when you define a constructor for a derived class.
You might also like to view...
When you have more than one computer sharing resources such as a printer or storage device, you may have a specialized computer to manage the shared resources called a(n) ________
Fill in the blank(s) with correct word
________ multiples expand across the available space in the container
Fill in the blank(s) with correct word