In C++, constructors in inheritance are executed in which order?

RSSB Computer Instructor 2026

In C++, constructors in inheritance are executed in which order?

  1. A.

    Only derived class constructor executes

  2. B.

    Base class first, then derived class

  3. C.

    Derived class first, then base class

  4. D.

    Random order

  5. E.

    Question not attempted

Attempted by 464 students.

Sign up free to check your answer

Sign up free

Explore the full course: Bpsc

Loading lesson…