class A { public int foo() { return 1; } } class C extends B { public int foo() { return 3; } }