//接口可以多继承其它接口
interface A {
public abstract void funA();
}
interface B{
public abstract void funB();
}
interface C extends A,B{
public abstract void funC();
}
class X implements C{
@Override
public void funA() {}
@Override
public void funB() {}
@Override
public void funC() {}
}
public class Demo {
public static void main(String[] args) {
}
}
//static修饰的接口内部类接口表示是一个外部类接口
interface A {
public void funA();
static interface B{
public abstract void funB();
}
}
class X implements A.B{
@Override
public void funB() {}
}
public class Demo {
public static void main(String[] args) {
}
}