If In Multiple Inheritance Class C Inherits Class B And Class B #184
If in multiple inheritance, class C inherits class B, and Class B inherits class A. In which sequence are their destructors called if an object of class C was declared?
This multiple choice question (MCQ) is related to the book/course gs gs111 OOP Object Oriented Programming Java. It can also be found in gs gs111 Constructors and Destructors - OOPs MCQ: Destructors - Quiz No.1.
If in multiple inheritance, class C inherits class B, and Class B inherits class A. In which sequence are their destructors called if an object of class C was declared?
~C() then ~B() then ~A()
~B() then ~C() then ~A()
~A() then ~B() then ~C()
~C() then ~A() then ~B()