[size=large]关联与依赖的区别(A [关联 or 依赖] B):
关联是有A就有B,依赖有A不一定有B,是A[b]在某个业务过程中[/b](这也就是依赖常表现为方法参数的原因)会用到B。[/size]
[b][color=red]Understanding UML Class Relationships:[/color][/b]
[url]https://vaughnvernon.co/?page_id=31[/url]
[b]Association, Aggregation, Composition, Generalization, Realization, Dependency:[/b]
[url]http://javapapers.com/oops/association-aggregation-composition-abstraction-generalization-realization-dependency/[/url]
[b]Association vs. Dependency vs. Aggregation vs. Composition:[/b]
[url]http://nirajrules.wordpress.com/2011/07/15/association-vs-dependency-vs-aggregation-vs-composition/[/url]
[b]类关系阐微:[/b]
[url]http://www.cnblogs.com/zjzkiss/archive/2007/05/06/736725.html[/url]
关联是有A就有B,依赖有A不一定有B,是A[b]在某个业务过程中[/b](这也就是依赖常表现为方法参数的原因)会用到B。[/size]
[b][color=red]Understanding UML Class Relationships:[/color][/b]
[url]https://vaughnvernon.co/?page_id=31[/url]
[b]Association, Aggregation, Composition, Generalization, Realization, Dependency:[/b]
[url]http://javapapers.com/oops/association-aggregation-composition-abstraction-generalization-realization-dependency/[/url]
[b]Association vs. Dependency vs. Aggregation vs. Composition:[/b]
[url]http://nirajrules.wordpress.com/2011/07/15/association-vs-dependency-vs-aggregation-vs-composition/[/url]
[b]类关系阐微:[/b]
[url]http://www.cnblogs.com/zjzkiss/archive/2007/05/06/736725.html[/url]