Quiz on C++ Class Access Modifiers



1. What are the three access modifiers in C++?
2. Which access modifier allows members to be accessed from outside the class?
3. What is the default access level for class members in C++?
4. If a member is declared as Protected, who can access it?
5. Which access modifier restricts access to the class itself?

Advertisements