• 2022-06-01
    ‎阅读以下程序,说明Company类和Employee类是 关系。‎‎public class Company{ private Employee employee; public Employee getEmployee(){ return employee; } public void setEmployee(Employee employee){ this.employee=employee; } //公司运作 public void run(){ employee.startWorking(); } }‎
  • 举一反三