Explain the difference between an association and an aggregation in UML.

1 Answers
Answered by suresh

Association vs Aggregation in UML

Association vs Aggregation in UML

In UML, an association represents a relationship between two classes where objects of one class can be connected to objects of another class.

On the other hand, aggregation is a type of association where one class is a part of another class, but it can exist independently.

So, the main difference between association and aggregation in UML is that aggregation implies a "whole-part" relationship, while association implies a more general relationship between classes.

Answer for Question: Explain the difference between an association and an aggregation in UML.