aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "protected access question" Watch "protected access question" New topic
Author

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: http://aspose.com/file-tools
 
subject: protected access question
 
Similar Threads
Is Protected Method is accessible?
Confused in Access control topic
protected access modifier
A ques's answer explanation not correct in K&B in chap 2
confused