package demo;
interface Runner{
int ID=1;
void run();
void fly();
}
abstract class AI implements Runner{
public void run(){
System.out.println("I am running");
}
public void bb(int x,int y){
System.out.println((x+y));
}
abstract void breathy();
}
public class TestInterface extends AI /*implements Runner*/{
/**
* @param args
*/
public static void main(String[] args) {
// TODO 自动生成方法存根
TestInterface ti=new TestInterface();
ti.run();
ti.breathy();
ti.fly();
ti.bb(1, 2);
}
void breathy() {
System.out.println("I am breathing");
}
public void fly() {
System.out.println("I am flying");
}
}