InterviewSolution
| 1. |
What Do You Understand By Aggregation? How It Differs With The Association ? |
|
Answer» In UML (Unified Modeling Language) there are various TYPES of relationships for the object-oriented SYSTEM. Association and Aggregation are also a TYPE of relationship in UML. Aggregation: Aggregation is a SPECIFIC type of association between two or more objects. In Aggregation, objects can have their lifecycle with ownership. It is a one-directional association. If we destroy one object, it will not affect another one. It is also called as HAS-A relationship. Association: Association is a relation between two objects with their own lifetime and without any ownership. An association relationship can be represented by the following type:
The aggregation and composition are the part of the association. In UML (Unified Modeling Language) there are various types of relationships for the object-oriented system. Association and Aggregation are also a type of relationship in UML. Aggregation: Aggregation is a specific type of association between two or more objects. In Aggregation, objects can have their lifecycle with ownership. It is a one-directional association. If we destroy one object, it will not affect another one. It is also called as HAS-A relationship. Association: Association is a relation between two objects with their own lifetime and without any ownership. An association relationship can be represented by the following type: The aggregation and composition are the part of the association. |
|