1秒登錄
UML類圖基本元素符號
包含類的名稱、屬性和方法定義。
可見性修飾符:
接口名稱通常以字母 "I" 開頭。
接口定義通常也用於抽象類。
任意的描述性文字。
將類和接口分組。
Inheritance
Generalization
B 繼承自 A。
B inherits from A.
B 實現了 A。
B implements A.
A 和 B 相互調用和訪問對方的元素。
A and B call and access each other’s elements.
A 可以調用和訪問 B 的元素,但 B 不可以訪問 A 的元素。
A can call and access B’s elements, but not vice versa.
A 中擁有一個 B,但 B 脫離於 A 仍然可以獨立存活。
A has a B, and B can outlive A.
A "uses" B = Aggregation : B exists independently (conceptually) from A.
A 中擁有一個 B,B 脫離 A 后在系統中沒有任何存活的意義。
A has a B, and B depends on A.
A "owns" B = Composition : B has no meaning or purpose in the system without A.
B 的變化會影響 A,則 A 依賴於 B。
A dependency exists between two elements if changes to the definition of one element (the supplier) may cause changes to the other (the client).
出處:https://www.cnblogs.com/gaochundong/p/uml_class_diagram_notation.html
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。