A Super class variable can reference a sub class Object.
It is the type of the variable not the type of the object which decides which member of a class has to be invoked.
What is the use of the above statements??? I mean what is the use of doing so???
why is it not applicable to OverRidden Methods (type of object decides which overridden method to be invoked, not the type of variable ).
I am confused with both these concepts, help me.