class Z extends Foo { void bar(String s) {} } class ZZ extends Z { void bar(String s) {} }