CI

C++ Certified Associate Programmer

219 Questions

You can start the exam to practice all questions related to this exam.

Question No. 1

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;
}
};
Choose the correct option from the given list.
01 / 219

0 Discussions

Trending Exams