Examveda

In C++, what is the order of constructor and destructor calls for a class hierarchy?

A. Constructors: Derived to Base, Destructors: Base to Derived

B. Constructors and Destructors follow the same order

C. Constructors: Base to Derived, Destructors: Derived to Base

D. Constructors: Derived to Base, Destructors: Derived to Base

Answer: Option C


Join The Discussion

Related Questions on Constructors and Destructors in C plus plus