1.

What are the C++ access specifiers?

Answer»

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.



Discussion

No Comment Found