Google News
logo
CPP - Interview Questions
What are the C++ access specifiers?
In C++ there are the following access specifiers :
 
* Public : All data members and member functions are accessible outside the class.
* Protected : All data members and member functions are accessible inside the class and to the derived class.
* Private : All data members and member functions are not accessible outside the class.
Advertisement