Difference Between Aggregation and Composition

Aggregation and Composition are basically the concepts about how to manage objects Aggregation Aggregation uses loose coupling, which means that it does not hold the actual object in the class. Instead, the object is being passed via getter or setter function. It gives the benefit that when the object of the parent class dies then the …