4色
package com.neu.edu.ppt; import com.neu.edu.desc.ComputerDesc; //ppt public class Computer
{ private String seriesNumber; private float price; private ComputerDesc computerDesc; //省略get set方法 要不太长了 } //Desc类:应该是对电脑类的描述吧,不太确定 package com.neu.edu.desc; public class ComputerDesc
{ //型号 private String type; //类型 private String form; } //Role类:出毛病的电脑
package com.neu.edu.role; public class ComputerMaintain
{ private String bug; } //MI: package com.neu.edu.mi; import java.util.Date; import com.neu.edu.role.ComputerMaintain; public class Maintain
{ private Date maintainDate; private String result; //下面这个属性不知道应不应该包含? private ComputerMaintain computerMaintain; public String findReason(ComputerMaintain computerMaintain)
{ return ""; } public void maintainComputer(ComputerMaintain computerMaintain)
{ } }
Grass Mud Horse