posted 15 years ago
Child2 will directly inherit from Child1 and yes you can not directly use the one defined in the Parent class (if not static).
In fact, you only can access the one defined in Parent using a Parent reference to a Parent object(Instantiated in Child2, as an example)!
And by saying ((Parent)this).someMethod(); you are polymorphically referring to Child2, and as far as Child2 is using the version defined in Child1, the same functionality will be used.
I hope that i have cleared your doubts ...
Best of luck ...
Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0