abstract interface和interface的区别

来源:互联网 发布:鑫居安消防手电筒 淘宝 编辑:程序博客网 时间:2024/06/05 17:27

 

abstract interface是字面理解(抽象接口)。

本人理解其优势就是结合了接口和抽象类的优点。

既然是接口就只可以被自定义的接口extends,被class所implements(测试过)

同时也测试过abstract Interface与abstract Interface之间也只有extends

 

-------------简单总结-------------

class 与class 之间是extends

class 与Interface之间是implements

Interface 与Interface是extends

Interface 和 abstract Interface 之间仅仅只能被你自己定义的接口extends,不可能implements, implements是Class和Interface之间的"专利"

原创粉丝点击