Different access specifiers for the class member in C++
Page 1 of 1
Different access specifiers for the class member in C++
Access specifiers in C++ determines the scope of the class members.
Public: If a class member is public, it can be used anywhere without the access restrictions.
Private: if a class member is private, it can be used only by the members and friends of class.
Protected: If a class member is protected, it can be used only by the members and friends of class and the members and friends of classes derived from class.
Similar topics
» Name the implicit member functions of a class.
» What is the default access level?
» Define private, protected and public access control.
» What is class using C++?
» Class vs. Structure
» What is the default access level?
» Define private, protected and public access control.
» What is class using C++?
» Class vs. Structure
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum