Hello!
Very new to UML and system design.
We're at the stage of doing a class diagram in the design phase and are struggling to figure out how to implement a requirement. Here's the problem:
We have a Person class that is composed of a Name class and a ContactDetails class. Contact details class is composed of a MobileNumber and an EmailAddress class.
How would I model my class diagram so that ContactDetails must have either MobileNumber or EmailAddress or both?
I'm sure it's simple - but it's thrown me!
Thanks