UML communication - association or aggregation?

If a class contains the type of another class as an attribute, what is the relationship - association or aggregation?

eg.

A flight class containing the City class type as the Destination attribute - is it an association or an aggregation? What will be the name of their relationship anyway? Flying - "Arrival" -City?

Another scenario:

A FlightBooking class that contains the type of the BusinessClass class as an attribute, indicating that it is a group layout of a business class - is it a union or aggregation?

Thank!

+3
source share
2 answers

A flight class with a type of City class as an attribute called Destination - is it an association or aggregation?

, , . ( , ..), , , ? : B , , A B ; , .

+4

- . , " " "" "" - .

0

All Articles