class B extends A implements Z { public void foo() { } }