Skip to main content

Interface 接口

Yujie LiuLess than 1 minuteComputer ScienceProgramming LanguageJava

Interface 接口

Interface修饰符

//接口默认都是abstract的方法,因此也是默认abstract的,隐藏不写
public abstract interface TestInterface {
  	//变量默认都是public static final的,隐藏不写
    public static final int a = 17;
}
Last update:
Contributors: Yujie