OOP Assignment Solution
Thursday, April 09, 2009 Posted In CS and IT Edit ThisAggregation : It indicates a “whole/part” relationship.
For example a department of the faculty has instructors.
Parts ( instructors ) can still exist even if the whole ( the department ) does not exist.
Composition : Composition is a strong kind of aggregation where the parts cannot exist independently of the “whole” object.
For example “ A human has head ”
Here head cannot be as a single part. Hence it is said to be a composition.
The relations among them are given as,