interface Printable{ [public final static] int MAX=100; [public abstract] void add(); }
接口包括常量和抽象方法的声明。只用常量,没有变量,并且是public final static(允许省略)的常量。所有的抽象方法一定是public abstract(允许省略)。
接口内部类默认使用public static修饰。