元素名稱 | 符號圖例 | 含義 |
Class | |
包含類的名稱、屬性和方法定義。spa 可見性修飾符:3d
|
Interface | |
接口名稱一般以字母 "I" 開頭。blog 接口定義一般也用於抽象類。繼承 |
Note | |
任意的描述性文字。接口 |
Package | |
將類和接口分組。ci |
Inheritanceelement Generalizationit |
|
B 繼承自 A。io B inherits from A.table |
Realization | |
B 實現了 A。 B implements A. |
Association | |
A 和 B 相互調用和訪問對方的元素。 A and B call and access each other’s elements. |
Association (one way) | |
A 能夠調用和訪問 B 的元素,但 B 不能夠訪問 A 的元素。 A can call and access B’s elements, but not vice versa. |
Aggregation | |
A 中擁有一個 B,但 B 脫離於 A 仍然能夠獨立存活。 A has a B, and B can outlive A. A "uses" B = Aggregation : B exists independently (conceptually) from A. |
Composition | |
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. |
Dependency | |
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). |