转自:
下文讲述一个接口继承另一个接口的实现方式,如下所示:
实现思路:
接口继承接口,采用的extends关键字
例:
接口继承接口的示例分享
interface Che { public void run(); public void print(); } interface ZiXingChe extends Che{ public void showInfo(); }
接口继承多接口的示例分享
interface Che { public void run(); public void print(); } interface ZiXingChe extends Che{ public void showInfo(); } interface Other{ public void show2(); } interface man extends Che,Other { public void show3(); }