I came across with these situation while building a class diagram for a system, I never cross with a similar situation so I am not sure how to do it
I have this two classes “Swimmer” and “Swimming Match”, the issue is with scheduling the match. The match as 3-4 days where where it can occur and the Swimmers can pick the days where they would prefer it to happen, how do I represent this exactly ?
You could have a class for
Swimmer, another class forSwimming Matchand then you have a couple of options:AcceptableDaywhich has three properties:Day(the day it could occur),swimmer(an instance of theSwimmerclass) andmatch(an instance ofSwimming Match)For an example of an association class, see here.