UML官方是这六种关系,Dependency(依赖),Association(关联),Aggregation(聚合),Composition(组合),Generalization/Inheritance(泛化),Realization/Implementation(实现)
依赖是什么?它导致了什么问题?
依赖是什么?martin fowler在《UML DIS》里给出了如下的解释
a dependency exists between two elements if changes to the definition of one element (the supplier) may cause changes to the other (the client) .
即当某一个元素A的变更可能导致另外一个元素B的变更时,则称这两个元素间存在依赖,更确切的说,元素B依赖于元素A。这是个抽象