public interface Inter {
int NUM = 10;
public abstract void show();
public default void show1(){
System.out.println("接口中的默认方法");
}
private void show2(){};
private static void method(){
}
}
//接口的实现类
public class InterImpl implements Inter {
@Override
public void show() {
System.out.println("接口的实现类中的方法重写");
}
}
public class TestInterImpl {
public static void main(String[] args) {
InterImpl im = new InterImpl();
im.show();
System.out.println(Inter.NUM);
im.show1();
}
}



