26.
What will be the order of execution of base class constructors in the following method of inheritance. class a: public b, public c {…};
A. b(); c(); a();
B. c(); b(); a();
C. a(); b(); c();
D. b(); a(); c();
27.
class X, class Y and class Z are derived from class BASE. This is ______ inheritance.
A. Multiple
B. Multilevel
C. Hierarchical
D. Single
28.
Reusability of the code can be achieved in C++ through ______ .
A. Polymorphism
B. Encapsulation
C. Inheritance
D. Both A and C
29.
Private members of the class are not inheritable.
A. TRUE
B. FALSE
C. May Be
D. Can’t Say
30.
In inheritance, order of execution of base class and derived class destructors are
A. Base to derived
B. Derived to base
C. Random order
D. none