When a class holds a type of another class as an attribute, what kind of relationship is this - association or aggregation?
e.g.
a Flight class holding a type of City class as an attribute called Destination - is this an association or aggregation? What would be the name of their relationship in either case? Flight- "arriving" -City?
Another scenario:
A FlightBooking class holding a type of BusinessClass class as an attribute to show that it is a business class flightbooking - is this association or aggregation?
Thanks!