How to call a base class constructor from a derived class in C++?
Vishalini.R Answered question June 28, 2023
We must explicitly invoke the parameterized constructor of the base class inside the parameterized constructor of the sub class. The parameterized constructor of the base class cannot be called in the default constructor of the sub class; instead, it must be called in the parameterized constructor of the sub class.
Vishalini.R Answered question June 28, 2023