Class Diagram
Mermaid로 클래스를 도식해보자
Example
Defining Relationships
클래스끼리 관계를 지을 수 있다.
문법은 다음과 같다.
[classA][Arrow][ClassB]
Type
Description
<|--
Inheritance
\*--
Composition
o--
Aggregation
-->
Association
--
Link (Solid)
..>
Dependency
..|>
Realization
..
Link (Dashed)
다양한 화살표를 지원한다.
이런 식으로 labeling도 가능하다.
Cardinality / Multiplicy
1
Only 10..1
Zero or One1..*
One or more*
Manyn
n0..n
zero to n1..n
one to n
Annotations
<<Interface>>
To represent an Interface class<<Abstract>>
To represent an abstract class<<Service>>
To represent a service class<<Enumeration>>
To represent an enum
Directions
방향을 설정할 수 있다.
Generic Types
REF
Last updated
Was this helpful?