Question: In C++ : When class B is inherited from class A, what is the order in which the destructor of those classes are executed A.
In C++ :
When class B is inherited from class A, what is the order in which the destructor of those classes are executed
A. Class A first Class B next
B. Class B first Class A next
C. Class B's only as it is the child class
D. Class A's only as it is the parent class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
