Search code examples
javaeclipseumlclass-diagram

What UML relation should I use between these two classes?


I have a class called "EventManager" and one called "Event". From Eventmanager I can created and store events in a linkedlisted, which then is stored in a hashmap together with "persons" who attend these events. Now, which relationship(UML) between Event and Eventmanager?


Solution

  • I think it's an HAS-A. Since EventManager contains Events.