Originally posted by Bala Rajamani:
Can some one explain why its calling super class add(int a) method?
Originally posted by Prashanth Joisha:
This is a good question - stumped me.
However, I still fail to understand the explanation
given - I thought that when a method is invoked its
the class of the object denoted by the reference
and not the reference itself comes into play. So
that said I would think the add(char c) in test2
class could have been executed.
really been executed