Question

Does double association exist in UML? Let's say, for example that i have two classes: User and Account with their own attributes which are not important and that in the User class there should be exactly two attributes of type Account. In this type of scenario when making the UML class-diagram should there be a double association or is there another way to emphasise the fact that there are two attributes of that type?

Thanks

Was it helpful?

Solution

In fact to model "a double association", I would use two associations which are useful to speficy a different role for each association as depicted below enter image description here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top