Choose The Correct Sequence Of Destructors Being Called For The #185
Choose the correct sequence of destructors being called for the following code.</p> <pre><code class="language-cpp"> class A{ }; class B{ }; class C: public A, public B{ };</code></pre>
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.
Choose the correct sequence of destructors being called for the following code.
class A{ }; class B{ }; class C: public A, public B{ };
~A(), ~B(), ~C()
~B(), ~C(), ~A()
~A(), ~C(), ~B()
~C(), ~B(), ~A()