interface

发布时间 2023-10-29 22:30:22作者: sellingpear

2023.10.29

1.接口中的成员变量默认是public static final修饰的

2.成员变量不可用private、default、protected修饰

3.因为不能属于对象实例的定义方法体 ,所以不可能有成员变量的getter、setter方法,可见,成员变量属于类(static)

4.接口中可以实现default方法