C++ Language/Objects/Accessibility

In the class definition, you can precede a group of members by  to disallow usage of that member from anywhere outside of that class' own member functions. Or, use  accessibility to also allow access to member functions of derived classes. The  accessibility allows access from anywhere.

Additional information about accessibility (includes interactive examples)