- 1、本文档共31页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
class diagram
We can also indicate the behavior of an object in an association (i.e., the role of an object) using rolenames. Teacher Student 1..* 1..* learns from teaches We can also name the association. Team Student membership 1..* 1..* Software Design (UML) We can specify dual associations. Team Student member of 1..* president of 1 1..* 1..* * Draw a class diagram for a information modeling system for a school. School has one or more Departments. Department offers one or more Subjects. A particular subject will be offered by only one department. Department has teachers and teachers can work for one or more departments. Student can enroll in upto 5 subjects in a School. Teacher can teach upto 3 subjects. The same subject can be taught by different teachers. Students can be enrolled in more than one school. * School has one or more Departments. School Department has 1 1..* Department offers one or more Subjects. A particular subject will be offered by only one department. Department Subject offers 1 1..* * Department has teachers and teachers can work for one or more departments. assigned to 1..* Teacher Department 1..* Student can enroll in upto 5 Subjects. Student Subject takes * 0..5 * Teachers can teach up to 3 subjects. The same subject can be taught by different teachers. Teacher Subjects teaches 1..* 1..3 * Students can be enrolled in more than one school. Student School member * 1..* * School Department Student Subject Teacher 1…* * member * 1..5 attends 1..3 1..* teaches 1..* 1 1 1..* has 1..* 1..* assignedTo offeres Software Design (UML) Software Design (UML) Software Design (UML) Software Design (UML) Software Design (UML) Software Design (UML) Software Design (UML) Software Design (UML) Software Design (UML) Class diagram Software Design (UML) ClassName attributes operations A class is a description of a set of objects that share the same attributes, operations, relationships, and semantics. Graphically, a class is ren
文档评论(0)