Assume that we have constructor function for both Base and Derived classes.…
UGC NET 2013
Assume that we have constructor function for both Base and Derived classes. Now consider the declaration :
main ( )
Base *p = new Derived;
In what sequence, the constructor will be executed ?
- A.
Derived class constructor is followed by Base class constructor.
- B.
Base class constructor is followed by Derived class constructor.
- C.
Base class constructor is never called.
- D.
Derived class constructor is never called.
Attempted by 18 students.
Sign up free to check your answer
Sign up freeLoading lesson…

