< C++ Language | Objects
In the class definition, you can precede a group of members by
private: to disallow usage of that member from anywhere outside of that class' own member functions.
protected: accessibility to also allow access to member functions of derived classes.
public: accessibility allows access from anywhere.
Additional information about accessibility (includes interactive examples)