Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, a C++ constructor gets passed down through inheritance. When a derived class is created, the constructor of the base class is also called to initialize the inherited members of the object. If the base class constructor is not called explicitly in the derived class constructor, the default constructor of the base class is called automatically.