2080 7

Object Oriented Programming20805 marksConstructor and Destructor in derived classes

Describe the chain of constructors and destructors in inheritance.

Describe the chain of constructors and destructors in inheritance. [5]

In inheritance, when an object of a derived class is created or destroyed, constructors and destructors of both the base class and the derived class are automatically invoked in a specific order. --- When a derived class object is created, constructors are called in top-down order, i.e., from the...

Up nextWhat is the use of reinterpret cast operator? Why do we need virtual function?