Once the subclass-outside-the-package inherits the protected member,
that member (as inherited by the subclass) becomes private to any code outside
the subclass, with the exception of subclasses of the subclass.
But i see that even the subclasses of the subclass cannot access the protected member being accessed by child.
Well protected members can be accessed using the subclass type but if that subclass is extends by a subsubclass, then that protected variable which was there in the parent class cannot be accessed by that subsubclass type because it is not inherited at all...i hope its clear
[ SCJP 6.0 - 90% ] , JSP, Servlets and Learning EJB.
Try out the programs using a TextEditor. Textpad - Java 6 api