描述物件。
其實UML還可以做更多,但class diagram在軟工領域最常用到。
Class Diagram
1 2 3 4 5 6 7 8 9 10 11 12 13
| Name **Class** / _Interface_
Attribute + public: type - private: type # protected: type ~ package: type
+ name: type
Methods + operation(): returnType
|
Relation
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| Association ----
Inheritance ---|>
Dependency(Extension) ...|>
Aggregation ---o
Composition ---*
Multiplicy 0/1..*
|
Playground
參考資料
ref1,
ref2,
ref3
Welcome to my other publishing channels