Thanks a lot Henry
Actually i experimented and came to the same conclusion as you gave ( this does not mean i am not appreciating you for your efforts, I always appreciate and infact salute you )
But the thing i am searching for is WHY ? this rule is imposed by
Java designers !!!
Nevertheless, for
SCJP, let me write what i concluded , you please crosscheck
Referring to above question.
In B class we can refer pf ofcourse by B ref.
In C class we can refer pf ofcourse by C ref.
In B class we can refer pf by C ref. ( Because B is responsible for the implementation )
In C class we CANNOT refer pf ofcourse by B ref. ( Because C IS-A B)
In Nutshell , you cannot say to your father, Hey access your pf , but Father can say to its child "Hey Son/daughter access your pf ".
Cheers!!!