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 i1) { } } class MySubclass extends MyClass { public void calc(int i, int i1) { } public void calc(int i, int i1) { } }
Duplicate method calc(int, int) in type MySubclass