If a method void dosth() is defined in superclass A and overridden in subclass B. Whose version
Fantastic news! We've Found the answer you've been seeking!
Question:
If a method void dosth() is defined in superclass A and overridden in subclass B. Whose version (As or Bs) is executed in the following code?
A obj = new B();
obj.dosth();
Posted Date: