aspose file tools*
The moose likes Beginning Java and the fly likes Protected Access Modifier 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 "Protected Access Modifier" Watch "Protected Access Modifier" New topic
Author

Protected Access Modifier

Thomas Markl
Ranch Hand

Joined: Mar 08, 2001
Posts: 192
"In java a protected variable is more accessible than a default variable (variable with no access modifier).
I think this is true because a protected variable is visible in the package and in subclasses of the class outside the package while default only means package access.
What do you think?
Thomas
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9043
    
  10
I agree.


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Protected Access Modifier
 
Similar Threads
Explicit default constructor
Protected and accessiblity
Access on Java classes
Protected in subclasses
protected member