I have identified two classes that I want to implement in code like this:
InsuranceProviders{
}
Advice{
List<InsuranceProviders> providers;
}
If I wanted to represent these two classes in a UML class diagram, should the Advice
class have an Association with InsuranceProvider
, or should it have a list attribute of InsuranceProvider
instead?
Or maybe something else?
Unless it's a simple value attribute, like a number or a string, always use an association.