R

Ram Sharma • 193.86K Points
Coach

Q. In case of inheritance where both base and derived class are having constructor and destructor, then which if the following are true ?

1. Constructors are executed in their order of derivation
2. Constructors are executed in reverse order of derivation
3. Destructors are executed in their order of derivation
4. Destructors are executed in reverse order of derivation

  • (A) Only 2 ,4
  • (B) Only 1 , 4
  • (C) Only 2, 3
  • (D) Only 1 , 3
  • Correct Answer - Option(B)
  • Views: 137
  • Filed under category C++

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.


Question analytics