22 lines
258 B
Java
Executable File
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;
|
|
}
|
|
} |