Aggregation Example
Aggregation Example: By definition we know that two classes have aggregation relationship when one class has the reference of other class but other class can still exist outside the containing class. Now consider two classes. Bike and Engine. We have following assumptions. A bike HAS-A engine An engine can exist without bike. (because we can manufacture engine separately and then mount […]