Packages and Access Control


Packages are part of Java's access control mechanism. A member with protected access is accessible to all members of the same package. Outside of the package in which it is defined, a protected member is only accessible to subclasses of the class in which it is defined. A member with default access is accessible to all members in the same package but is not accessible outside of the package.



Technical Java. Applications for Science and Engineering
Technical Java: Applications for Science and Engineering
ISBN: 0131018159
EAN: 2147483647
Year: 2003
Pages: 281
Authors: Grant Palmer

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net