Understanding Association, Aggregate, and Composition

If you want to improve your English abilities, especially writing skills, let's work together!
打印 被阅读次数

Association is the ability to send messages from one instance to another. Aggregation is a part-whole relationship and is exactly the same as association except it doesn't allow a part to contain its whole. Composition is exactly like aggregation except that the lifetime of the 'part' is controlled by the 'whole'.

登录后才可评论.