class B extends A implements Z { public String getFoo() { return "foo"; } }