Hi Calligis,
Well, let me clarify here. I did not say how the reference of
object of superclass would refer to the methods of subclass methods.
I simply stated a point that an object of subclass inherits the public/protected methods/members of superclass.
Where is the confusion??
Ofcource, a reference variable of superclass only knows about the methods that are defined in the superclass and cannot know the methods that are declared and defined in the subclass, precisely that is what is implemented when we use abstraction.
Cheers,
Ravindra Mohan.
[This message has been edited by Ravindra Mohan (edited May 06, 2001).]