Q11easy
If a class A has a protected member x, who can access it?
Topic-wise practice questions for Programming (C++ / Java / Python). Test your knowledge, check solutions on demand, and pace your preparation.
class Test {
int x = 10;
static void display() {
print(x);
}
}