Site hosted by Angelfire.com: Build your free website today!
 

Access modifiers

public

access to the member (variable, method) or class is access from any other class.

protected

access to the member is restricted to classes in the same package or subclasses derived from this class but contained in other packages.

package

access to the member is restricted to classes in the same package. (the default, denoted by the absence of an access keyword)

private

access to the member is restricted to the class where it is defined.