The following variable myObj is declared as type GeneralCase and assigned an instance of a subclass of GeneralCase called SpecificCase. Both contain implementations of a method called total().


GeneralCase myObj = new SpecificCase();
 
 

If myObj is used to call total() which version gets called?

The one in SpecificCase
  • The one in GeneralCase

There are no hints for this question