aspose file tools*
The moose likes Beginning Java and the fly likes default class member visibility in java 6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "default class member visibility in java 6" Watch "default class member visibility in java 6" New topic
Author

default class member visibility in java 6

Gasan Guseynov
Ranch Hand

Joined: Jan 03, 2006
Posts: 67
Am I right that default visibility is package. So it's more strict then protected (that allows to access class member in the same package in from descendent) and allows access only from the same package. Many thanks.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

Yes, that's right. That's been true in every version of Java since the beginning.
[ June 29, 2008: Message edited by: Ernest Friedman-Hill ]

[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: default class member visibility in java 6
 
Similar Threads
Question - Philip Heller's book
Question about protected access
probably statement of the obvious regarding class member access
protected and package/default access
javadoc help