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