代码如下
interface Inter{
public abstract void show();
}
interface InterA{
public abstract void show();
}
class Demo{
public void show(){
System.out.println("aaaaaa");
};
}
class Test extends Demo implements Inter,InterA{
public void show(){
System.out.println("cccccccc");
}
}
public class MyTest{
public static void main(String[] args){
Test t1=new Test();
t1.show();
}