MCQOPTIONS
Saved Bookmarks
| 1. |
Which among the following is correct for the code given. class A { private: int marks; A() { } Public : disp() { cout<< marks; } }; class B: public A { } B b; |
| A. | Instance of B will not be created |
| B. | Instance of B will be created |
| C. | Program gives compile time error |
| D. | Program gives runtime error |
| Answer» B. Instance of B will be created | |