5. In what ways can aggregation be distinguished from composition for a whole-part relationship..Give short answers

1. Aggregation involves a weak relationship between the whole and its parts, meaning the parts can exist independently of the whole. Composition, on the other hand, involves a strong relationship where the parts are dependent on the whole.

2. Aggregation typically involves a "has-a" relationship between the whole and its parts, while composition involves a "is-a" relationship.
3. Aggregation allows for parts to be shared among different wholes, while composition typically does not allow for this.
4. Aggregation is often represented by a diamond symbol, while composition is represented by a filled diamond symbol.