UML - Class Diagram

  1. 1. Visibility
  2. 2. Relationships
    1. 2.1 Dependency
    2. 2.2 Association
    3. 2.3 Aggregation
    4. 2.4 Compostion
    5. 2.5 Inheritance
    6. 2.6 Realization/ Implementation
  3. Reference

Alright, some basic knowledge collecting from wiki, uml tutorial websites. Merely regrad this blog as a reference, when you creating/ reading some class disgram, you might wanna look at the blog for better understanding.

1. Visibility

  • + public
  • - private
  • # protected
  • ~ package

2. Relationships

Types of logical connections found on class and object diagrams.

fig1.png

2.1 Dependency

A sementic connection between dependent and independent model elements.

2.2 Association

A binary association

2.3 Aggregation

Has a assocation relationship

2.4 Compostion

Has a, and without parent, child will not exist

2.5 Inheritance

2.6 Realization/ Implementation

Reference

  1. https://en.wikipedia.org/wiki/Class_diagram
  2. https://design-patterns.readthedocs.io/zh_CN/latest/read_uml.html

转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 stone2paul@gmail.com

文章标题:UML - Class Diagram

文章字数:105

本文作者:Leilei Chen

发布时间:2020-02-03, 05:57:47

最后更新:2020-02-04, 12:37:03

原始链接:https://www.llchen60.com/UML-Class-Diagram/

版权声明: "署名-非商用-相同方式共享 4.0" 转载请保留原文链接及作者。

目录
×

喜欢就点赞,疼爱就打赏