What is the order of Destructors call when the object of derived class B is declared, provided class B is derived from class A?
A. Destructor of A followed by B
B. Destructor of B followed by A
C. Destructor of A only
D. Destructor of B only
Answer: Option B
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