interface A
{
public abstract int getNum(int a);
}
interface B
{
public final int num=4;
public abstract String getNum(String str);
}
class C implements A,B
{
/*public void getNum()//方法根本就无法复写,不能确定到底是int 还是String
{
System.out.println();
}
*/
}
class InterfaceDemo
{
public static void main(String[] args)
{
C c=new C();
c.getNum();
//System.out.println("num"+num);
}
} |