What is the order of Constructors call when the object of derived class B is declared, provided class B is derived from class A?
A. Constructor of A followed by B
B. Constructor of B followed by A
C. Constructor of A only
D. Constructor of B only
Answer: Option A
Related Questions on Inheritance in C plus plus
A. Multilevel inheritance
B. Hierarchical inheritance
C. Multiple inheritance
D. Single inheritance
A. public
B. private
C. friend
D. protected
What is the process of defining a new class based on an existing class in C++ called?
A. Inheritance
B. Composition
C. Encapsulation
D. Polymorphism

Join The Discussion