InterviewSolution
Saved Bookmarks
| 1. |
If a derived class object is created, which constructor is called first?(a) Base class constructor(b) Derived class constructor(c) Depends on how we call the object(d) Not possibleI had been asked this question in a job interview.This interesting question is from Inheritance topic in chapter Inheritance & its Types of Object Oriented Programming |
|
Answer» The correct choice is (a) BASE class constructor |
|