What will variable “y” be in class B?
class A {
int x;
protected: int y; public: int age;
class B : public A { string name; public: void Print() { cout A. public
B. private
C. protected
D. None of these

Leave a Reply

Your email address will not be published. Required fields are marked *