我的爱情你的名字吧 关注:86贴子:14,992
  • 1回复贴,共1


1楼2019-11-12 21:39回复

    interface teacher{
    void teaching();
    }
    interface father{
    void earning();
    }
    abstract class driver{
    abstract void picking();
    }
    class person extends driver implements teacher,father{
    public void teaching() {
    System.out.println(".....教书");
    }
    public void earning() {
    System.out.println(".....挣钱");
    }
    public void picking() {
    System.out.println(".....接送孩子");
    }
    }
    public class Test4 { public static void main(String[] args) {
    // TODO Auto-generated method stub
    person p = new person();
    p.teaching();
    p.earning();
    p.picking();
    }}



    3楼2019-11-13 10:42
    回复