How constructor and destructor executed in multilevel inheritance?
Home
/
Computer Science
/
How constructor and destructor executed in multilevel inheritance?
How constructor and destructor executed in multilevel inheritance?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
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
Explanation:
I have answers but given after sometime. btw I'm sorry for ur answering [email protected]