The simplest is dependency

flying_snow (飞雪浮冰)
Dependency is where one object must know about another.
In a simple dependency relationship all we know is that one object has knowledge of another. For example, in C++, if one class requires the inclusions of the header for another, that establishes a dependency.

2001-3-29 -04:00

回到话题: OO. I know the relationship between Composition and Inheritance. But I can't understand clearly about Aggregation, Association, and Dependency. Would you please help me clarify them? tks.

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论