Computer Science, asked by nitya2736, 1 month ago

How constructor and destructor executed in multilevel inheritance?​

Answers

Answered by yroli386
2

Explanation:

When the object obj of class B is created during program execution, then the constructor of the base class is executed first and then the constructor of the derived class is executed, similarly, when the object of class B is destroyed (just before the program termination), the destructor of the derived class B is

Similar questions