Protected member behavior once it was inherited.
问题 I've got some doubts regarding protected identifier. In the first chapter of Sun Certified Java Programmer Study Guide by K.Sierra I found the following information: "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." I provided sample code which reflects the above statement and it is absolutely clear to me. // Parent class package