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

1 thought on “What is the order of Destructors call when the object of derived class B is declared, provided class B is derived from class A?”

  1. b
    Explanation: Order of Destructor call is just reverse of the order of Destructors call. First, the destructor of the derived class is called then Destructor of the base class is called.

Leave a Comment