http://www.cplusplus.com/doc/tutorial/classes/
private members of a class are accessible only from within other members of the same class (or from their "friends"). protected members are accessible from other members of the same class (or from their "friends"), but also from members of their derived classes. Finally, public members are accessible from anywhere where the object is visible.