oojava-employee.docVIP

  • 9
  • 0
  • 约5.52千字
  • 约 2页
  • 2017-06-05 发布于天津
  • 举报
oojava-employee

This exercise implements the two classes shown in the UML class diagram below. The two associations between the classes dept and manager are such that an employee can only be in one department, and that each department has only one manager. These associations are implemented by giving Employee an attribute of class Department called dept. In a similar way the class Department has an attribute called manager, which of class Employee. Here is the code to implement the Department and Employee classes:- public class Department String deptName; Employee manager; public Department String in_dept

文档评论(0)

1亿VIP精品文档

相关文档