Nguyễn Hồng Nhung
New member
Which class destructor will be called first, when following code go out of scope?
A. ~A()
B. ~B()
C. ~C()
D. ~B() and ~C()
Code:
class A{ };
class B{ };
class C: public B{ };
A a;
B b;
C c;
B. ~B()
C. ~C()
D. ~B() and ~C()