22 lines
258 B
Plaintext
22 lines
258 B
Plaintext
|
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;
|
||
|
}
|
||
|
}
|