Computer Science - Object Oriented Programming Using C++ - Discussion

Discussion Forum : Object Oriented Programming Using C++ - Section 6 (Q.No. 32)
32.
When you instantiate a derived class object, a constructor for the derived class _____
is not called
is called prior to the base class constructor
is called simultaneously with the base class constructor
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
2 comments Page 1 of 1.

Lucifer said:   7 years ago
Calling Sequence:

1. Constructor of Base Class.
2. Constructor of Derived Class.
3. Destructor of Derived Class.
4. Destructor of Base Class.

Lucifer said:   7 years ago
Constructor for the derived class is called after the base class constructor is called.

Post your comments here:

Your comments will be displayed after verification.