Hi again ... I apologize. My typing fingers ran away from me before I was able to pose the question correctly last time I was here.
Let me try again:
The code that I submitted below compiles and runs successfully, suggesting that one can access by
reference a protected variable of a Superclass via the Derived class --- even when the Superclass is in a different package from the Derived class and the Neighbor class. In summary, I don't see statement on page 36 of
SCJP 6 study guide holding up. That, in turn, reflects "incorrectly" -- in my experience --- on the graph on page 37 --- rightmost and lower entry .
I understand and saw in test code that the Derived class cannot access protected class member in Superclass that resides in different package via a reference; it only can do it via inheritance. UNDERSTOOD.
What I do not see is the nuance that is being presented with regards to the "Neighbor class." I hope that this clarifies my question. I greatly appreciate your reply.
So far, the study guide has been very helpful! Thank you! GZ.