I am still confused about the general difference between upcasting and downcasting.
How is it that sum of v23
is 132
? Shouldn't it be 77
after upcasting?
I realize that overriding comes to take the place but then how can you get the access to the method of super-class if the function below seems to always refer to the method of the subclass?