JavaPatternMatching/bin/mycompiler/test/javaConcepts/inheritance/TestInheritanceMultiple.jav
2013-10-18 13:33:46 +02:00

22 lines
258 B
Java
Executable File

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;
}
}