This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
A ques's answer explanation not correct in K&B in chap 2
Confused in Access control topic
protected access modifier
confused
Is Protected Method is accessible?