Java Package - Package Access Protection

Package Access Protection

Classes within a package can access classes and members declared with default access and class members declared with the protected access modifier. Default access is enforced when neither the public, protected nor private access modifier is specified in the declaration. By contrast, classes in other packages cannot access classes and members declared with default access. Class members declared as protected can be accessed from the classes in the same package as well as classes in other packages that are subclasses of the declaring class.

Read more about this topic:  Java Package

Famous quotes containing the words access and/or protection:

    Lesbian existence comprises both the breaking of a taboo and the rejection of a compulsory way of life. It is also a direct or indirect attack on the male right of access to women.
    Adrienne Rich (b. 1929)

    Innocence does not find near so much protection as guilt.
    François, Duc De La Rochefoucauld (1613–1680)