class Z extends Foo { void foo(String s, double x) {} } class ZZ extends Z { void foo(String s, double x) {} }