Composition and Aggregation are almost the same
composition the contained objects do not exist independently in case of the above example the Heart cannot exist without the person.
Aggregation the contained objects can exist independently like
Money exists without a person.
Labels
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment