File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

protected access question

 
Kenny Johnson
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


How come in the ChildUtil class that extends ParentUtil, I cant call the protected method of ParentUtil. Protected access states that you have to be either in the same package or a child class to use protected variables / methods. Can someone please explain where I am going wrong?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic