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