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;} 15.Which of the following is true about the following program |
| A. | Base1 Base2 Derived |
| B. | Derived Base2 Base1 |
| C. | Derived |
| D. | Compiler Dependent |
| Answer» C. Derived | |