In C++, if a derived class does not define a constructor, which constructor of the base class is called during the object creation of the derived class?
A. No constructor is called
B. Destructor of the base class
C. Parameterized constructor of the base class
D. Default constructor of the base class
Answer: Option D
Related Questions on Inheritance in C plus plus
A. Multilevel inheritance
B. Hierarchical inheritance
C. Multiple inheritance
D. Single inheritance
A. public
B. private
C. friend
D. protected
What is the process of defining a new class based on an existing class in C++ called?
A. Inheritance
B. Composition
C. Encapsulation
D. Polymorphism

Join The Discussion