MCQOPTIONS
Saved Bookmarks
| 1. |
Note:Includes all required header filesusing namespace std; class Base1 { public: ~Base1() { cout << " Base1" << endl; }}; class Base2 { public: ~Base2() { cout << " Base2" << endl; }}; class Derived: public Base1, public Base2 { public: ~Derived() { cout << " Derived" << endl; }}; int main(){ Derived d; return 0;} 16.Assume that an integer takes 2 bytes and there is no alignment in following classes, predict the output. |
| A. | 30 |
| B. | 60 |
| C. | 0 |
| D. | 120 |
| Answer» E. | |