Composition Vs Aggregation

Composition

Pasted image 20230810141107.png

The classes cannot exists without the parent class. Strong depdendency

Aggregation

Pasted image 20230810141127.png

Classes can exists in parallel and belongs to multiple classes.