A

Admin • 833K Points
Coach

Q. In case of inheritance where both base and derived class are having constructors, when an object of derived class is created then___________ .

  • (A) constructor of derived class will be invoked first
  • (B) constructor of base class will be invoked first
  • (C) constructor of derived class will be executed first followed by base class
  • (D) constructor of base class will be executed first followed by derived class
  • Correct Answer - Option(D)
  • Views: 20
  • Filed under category C++
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.