MCQOPTIONS
Saved Bookmarks
| 1. |
C++ : Trace the output.class base { private: int x;protected: int y; public:base(){x=10;y=20;}}; class derived : public base { protected: int a, b; void change( ) { a=x; b=y; cout |
| A. | 10 20 |
| B. | Run time error. |
| C. | Compile time error. |
| D. | None of the above |
| Answer» D. None of the above | |