File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes protected access question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "protected access question" Watch "protected access question" New topic

protected access question

Kenny Johnson
Ranch Hand

Joined: Jan 01, 2007
Posts: 37

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?
I agree. Here's the link:
subject: protected access question
jQuery in Action, 3rd edition