4.5 Modifiers

The modifiers public, private, and protected controll access to the modified member. A public member can be accessed by any class. A private member can only be accessed by the containing class. A protected member can be accessed by the containing class and subclasses and all classes that are members of the same package. A member without a modifier can be accessed by all members of the same package.