The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2001

Advertisement

Advertisement

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.

Message:

i am a silver spoon

Posted by Chin Loong on December 01, 2001 at 12:09 AM

:P

please read up on public, protected and private keywords from any online tutorials, free sample chapters, or any java books from any bookshops ;)

public : accessible by anything, own methods, other classes

protected : only accessible by subclasses (classes that extends it) and own methods.

private : only accessible by own methods. not accessible by subclasses and other classes.



Replies:

Sponsored Links



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