What is the default access level?
Page 1 of 1
What is the default access level?
The access privileges in C++ are private, public and protected. The default access level assigned to members of a class is private. Private members of a class are accessible only within the class and by friends of the class. Protected members are accessible by the class itself and its sub- classes. Public members of a class can be accessed by anyone.
Similar topics
» Different access specifiers for the class member in C++
» Define private, protected and public access control.
» What is the use of default constructor?
» What is a default constructor?
» What is a default constructor?
» Define private, protected and public access control.
» What is the use of default constructor?
» What is a default constructor?
» What is a default constructor?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|