C++ Constructors Question: Download Questions PDF
Can you please explain the order in which constructors are called when an object of a derived class is created?
![C++ Constructors Interview Answer C++ Constructors Interview Question](https://globalguideline.com/public/images/interview/30.png)
Answer:
The constructors of any virtual base classes are called first in the order of inheritance.
Non-virtual base class constructors are called next.
The derived class constructor is called last.
Non-virtual base class constructors are called next.
The derived class constructor is called last.
Download C++ Constructors Interview Questions And Answers
PDF