The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2000



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Accessing a "package access" classs from outside the pacakge

Posted by Yogesh Shastri on April 22, 2001 at 1:29 AM

Refer to Bruce Eckel's book "thinking in java".
Refer to the chapter on "Hiding the implementation"
Refer to the para just above the section titled "Summary"

It says that you can access the classes with "default access" outside the package, by using static methods. Can somebody clarify with an example.


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us