1、Act.java // 接口类 public interface Act ... {publicvoidgo();} 2、Chinese.java // 实体类 public class Chinese ... {publicvoidgetAge()...{System.out.println("entityclass.");}} 3、Person.java // 抽象类可以实现接口,并且可以继承实体类。 public abstract class Person extends Chinese implements Act ... {publicvoidrun()...{System.out.println("run");}publicabstractvoidjump();} 4、Test.java public class Test extends Person ... {//Act中的方法publicvoidgo()...{System.out.println("go");}//Person中的方法publicvoidjump()...{System.out.println("jump");}publicstaticvoidmain(String[]args)...{Testt=newTest();t.go();t.run();t.jump();t.getAge();//Chinese中的方法}}