1.

Output of following program? class A { protected: int a,b; public: void disp() { cout<<a<<b; } }; class B:public A { int x,y; };

A. Garbage value
B. Compile time error
C. Runtime error
D. Runs but gives random values as output
Answer» C. Runtime error


Discussion

No Comment Found