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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!