Hi guys,
In the code I copied at line //1, does this mean that because the index is a member variable of super class this would always be shown from the super class? //created the object, this is a Super reference of a Sub object??
if this is so, would this mean that the reference calls the member variables???
And in line //2, because the object is of sub this means that the compiler takes the subs version of the method printVal()?
I think what I still can't get my head around is that the super member variable gets called.
I have read how my dog learned polymorphism, but i need it explained to me as if i were in primary school
Davy