public class MainClass {
public static void main(String[] argv) {
MySubclass sub = new MySubclass();
sub.calc(1, 2);
System.out.println();
}
}
class MyClass {
public void calc(int i, int j) {
System.out.println("a");
}
}
class MySubclass extends MyClass {
public void calc(int i, int j) {
System.out.println("b");
}
}
|