//父类的方法
public interface Fly {
//接口中全部是抽象方法 省略Abstract
public void fly();
}
public interface Run {
public void run();
}
public class Bird implements Fly{
public void fly() {
System.out.println("12334");
}
}
public class Plane implements Fly,Run{
public void fly() {
System.out.println("用引擎飞");
}
@Override
public void run() {
System.out.println("用轮子跑");
// TODO Auto-generated method stub
}
}
public class Test {
public void main(String[] args) {
Plane plane=new Plane();
Bird bird=new Bird();
plane.fly();
plane.run();
}
}
本文探讨了飞机和鸟类在飞行原理、动力系统和实际应用上的区别,详细解析了飞机如何利用引擎飞行动力,以及鸟类如何通过翅膀扇动实现飞行。
8103

被折叠的 条评论
为什么被折叠?



