不能用来修饰interface的有

2025-05-22 22:37:23

不能用来修饰interface有static 或final来修饰。

接口中的方法默认的都是public的,这是接口的一种规范public的才能被实现接口中定义的字段也只会是static final的网上有人打了个比方:接口是用来定义一种(对象之间的)交互规范的,当然必须是public的。打个比方。

不能用来修饰interface的有

interface例句:

1、My computer has a network interface, which allows me to get to other computers.

我的计算机有网络接口,可以与其他计算机连在一起。

2、The system uses an impressive graphical interface.

这一系统采用了特别好的图形界面。

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢