Vidyalelo
C++ Programming · Q72

Inheritance in C++

Programming · C++ Programming · question 72

Q72

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
Answer
C.
Destructor of A only
D.
Destructor of B only

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board