package scope : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

package scope
If you have a variable or method in your class that you don’t want clients of your class directly accessing, don’t give it a public, protected or private declaration. Due to an oversight in the design of Java, you can’t explicitly declare the default package accessibility. Other members of the package will be able to see it, but classes outside the package that inherit from yours, won’t. The protected accessibility attribute offers slightly more visibibily. A protected method is visible to inheriting classes, even not part of the same package. A package scope (default) method is not. That is the only difference between protected and package scope.

This page is posted
on the web at:

http://mindprod.com/jgloss/packagescope.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\packagescope.html
logo
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.
no blog for this page
IP:[65.110.21.43]
Your face IP:[54.167.138.53]
You are visitor number