My Answer

liweizhang (Panda)
Association: Models a semantic connection among classes

Aggregation: A special form of association that models a whole-part relationship between an aggregate (the whole) and its parts

Composition:A form of aggregation with strong ownership and coincident lifetimes(The parts cannot survive the whole/aggregate)
2001-3-29 -05: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技术讨论