This week's book giveaway is in the NodeJS forum. We're giving away four copies of Serverless Applications with Node.js and have Slobodan Stojanovic & Aleksandar Simovic on-line! See this thread for details.
In order to acess a protected member of a superclass that is in another package, you must use a reference type of your class or a subclass of your class. So this was OK, because it is of type ChildUtil, but p is not OK because it is of type ParentUtil.
SCJP 1.4, SCWCD in process
posted 14 years ago
Thanks Mike, You said "You must use a reference of your class or a subclass of your class to access the protected member".......I am not able to understand how a subclass of the class can be used.Please can you give me an example.