JavaPatternMatching/bin/mycompiler/test/javaConcepts/inheritance/TestInheritanceMultiple.jav

22 lines
258 B
Plaintext
Raw Normal View History

2013-10-18 11:33:46 +00:00
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;
}
}