public class MainClass extends BaseClass { public static void main(String[] args) { Short myGold = 7; System.out.println(aMethod(myGold, 6)); } } class BaseClass { int aMethod(int x, int y) { return x + y; } }