interface A{ } interface B{} class Tester implements A,B{ m(){ } } public class TestInheritanceMultiple{ /*should return either of Type Intf1, Intf2, or Tester*/ public m1(x){ x.m(); return(x); } public m2(Tester x){ x.m(); return x; } }