Explain how the constructor of the base class can be invoked when the object of the derived class is created
Answers
Answered by
2
Answer:
Base class constructors are always called in the derived class constructors. Whenever you create derived class object, first the base class default constructor is executed and then the derived class's constructor finishes execution.
Answered by
1
Answer:
Base class constructors are always called in the derived class constructors. Whenever you create derived class object, first the base class default constructor is executed and then the derived class's constructor finishes execution.
Similar questions