class A { void foo(int i) {} } class B extends A { void foo() {} @Override void foo(int i) { } }