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...
Which of the following type of hackers will report a vulnerability when they find it?
a. White hat b. Gray hat c. Green hat d. Black hat
The macro virus infects the key operating system files located in a computer's start-up sector. __________
Answer the following statement true (T) or false (F)