ITeye博客

抽象接口(abstract interface)与接口(interface)的区别

DavisWang · 2011-10-22 20:04 · Java语言 · 编程语言 · Markdown

抽象接口(abstract interface)与接口(interface)没有任何区别,所有接口中的方法缺省为抽象方法,所以在interface前是否有abstract修饰对方法的属性无任何影响。

下面是官方的说明:

**“**All of the methods in an interface (see the Interfaces section) are implicitly abstract, so the abstract modifier is not used with interface methods (it could be—it's just not necessary).”

详见:http://download.oracle.com/javase/tutorial/java/IandI/abstract.html

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。