Originally posted by M Rama:
K&B says the following:
For subclasses outside the package, the protected member can be accessed
only through inheritance; a subclass outside the package cannot access a
protected member by using a reference to an instance of the superclass (in
other words, inheritance is the only mechanism for a subclass outside the
package to access a protected member of its superclass).
Thanks Rama. That is exactly what I am looking for. Good research skills there. Thanks to everyone who participated in the explanation too. Thanks a lot.
Udegbunam Ikechukwu Morah<br />B.Sc.,SCJP, MCP, OCP, PMP<br />Manager, Business COnsulting Group<br />Deep Business Solutions Limited