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

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top