public class MainClass {
public static void main(String[] argv) {
MySubclass sub = new MySubclass();
sub.calc(1, 2);
sub.calc(1.1F, 1.0F);
System.out.println();
}
}
class MyClass {
public void calc(int i, int j) {
System.out.println("public void calc(int i, int j) from MyClass");
}
public void calc(float f, float f1) {
System.out.println("public void calc(float f, float f) from MyClass");
}
}
class MySubclass extends MyClass {
public void calc(int i, int j) {
System.out.println("public void calc(int i, int j) from MySubclass");
}
}
public void calc(int i, int j) from MySubclass
public void calc(float f, float f) from MyClass