Page 1 of 1

About Question com.enthuware.ets.scjp.v6.2.526 :

Posted: Tue Sep 15, 2015 1:41 pm
by sidneyoung
why is it if B extends A...then B is an A
and C Extends B then C is An A
that D extends C but is not an A ?

Re: About Question com.enthuware.ets.scjp.v6.2.526 :

Posted: Tue Sep 15, 2015 8:34 pm
by admin
D is certainly a A. But do you see an object of class D anywhere in the code? In other words, does the variable a point to an object see that is-a D ?