Life is Beautiful Learn to See it.........
Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Life is Beautiful Learn to See it.........
Originally posted by A Kumar:
Hi,
The significance of the statement can be gauged if u can modify your code a
wee bit....remove extends of the third class...now this class is not extending any class...and see ...there is a compiler error.
i have pasted the code for you..
Regards
Only those who will risk going too far can possibly find out how far one can go !!!
Once the subclass-outside the package inherits the protected member the member becomes private to anycode outside the subclass .So if a class “neighbour” instantiates a child object,then even if class neighbour is in same package as class child,class neighbour would not b able to access to the child protected (inherited)member with the exception of subclasses of the subclass
Life is Beautiful Learn to See it.........
there is no knowledge that is not power<br />-<br />SCJP 1.4<br />SCWCD in progress<br />SCMAD in progress
Thanks & Regards<br /> <br />-Srikanth
Life is Beautiful Learn to See it.........
Life is Beautiful Learn to See it.........