What will the variable “age” be in class B?

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

Download Printable PDF. VALID exam to help you PASS.

Posted in: CPA

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.