C++ Institute CPA-21-02 Question Answer
What will the variable "y" be in class B?
class A {
int x;
protected:
int y;
public:
int age;
};
class B : protected A {
string name;
public:
void Print() {
cout << name << age;
}
};
C++ Institute CPA-21-02 Summary
- Vendor: C++ Institute
- Product: CPA-21-02
- Update on: Aug 2, 2025
- Questions: 257