Question: When a derived class object is destroyed, in what order are the destructors executed? First the derived class destructor is executed, then the base class

When a derived class object is destroyed, in what order are the destructors executed?

First the derived class destructor is executed, then the base class destructor is executed.

First the base class destructor is executed, then the derived lass destructor is executed.

Only the base class destructor is executed.

Only the derived class destructor is executed.

In C++, what is a pure virtual method?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The question is incomplete Heres a brief reason The question mixes two different concepts in C witho... View full answer

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!