Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Protected Access Modifier

 
Thomas Markl
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
Posts: 9067
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic