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) Inherited members are need to be allocated memory and should be initialized at creation of a derived class object.
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.
You might also like to view...
When ________ is selected, you can change one dimension of the table and the other dimension will automatically be changed to maintain the proportion
A) lock aspect ratio B) section C) merge D) AutoFit
A set of instructions that accomplish a specific task is called a(n):
A) construct. B) event. C) module. D) sub procedure.