
public interface Test extends A,B {
//定义
}
interface A{
//定义
}
interface B{
//定义
}//源代码片段来自云代码http://yuncode.net
class Bird extends Animal implements Flyable{
//自己定义
public void buildNest(){}
public void layEggs(){}
//继承父类
public void eat(){}
//覆盖方法
public void takeOff(){//加速起飞}
public void land(){//减速着陆}
public void fly(){//保持引擎运转}
}//源代码片段来自云代码http://yuncode.net
public interface Test extends A,B {
//定义
}
interface A{
//定义
}
interface B{
//定义
}//源代码片段来自云代码http://yuncode.net



