Constructor Destructor

Order of constructor and destructor call in case of multiple inheritance?

Answer:
constructors top-down, destructors bottom-up.

Ex.
parent's constructor

child's constructor

grandchild's constructor

grandchild's destructor

child's destructor

parent's destructor

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License