MCQOPTIONS
Saved Bookmarks
| 1. |
Which class destructor will be called first, when following code go out of scope? class A{ }; class B{ }; class C: public B{ }; A a; B b; C c; |
| A. | ~A() |
| B. | ~B() |
| C. | ~C() |
| D. | ~B() and ~C() |
| Answer» D. ~B() and ~C() | |