interface Flyable{
void Fly();
}
class Bird implements Flyable{
public void Fly(){
System.out.println("鸟可以飞");
}
}
class Plane implements Flyable{
public void Fly(){
System.out.println("飞机可以飞");
}
}
public class Text{
public static void main(String[] args){
Flyable ifly=new Bird();
ifly.Fly();
ifly=new Plane();
ifly.Fly();
}
}