Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shortcuts for the multiplicities in UML Class Diagrams

Regarding the multiplicity between classes, I have seen 1..1 and 1 in the same textbook without clarifying the difference. What is the difference between 1..1 and 1 ? Are they same and used interchangeably?

like image 765
Moe Avatar asked Dec 04 '25 16:12

Moe


1 Answers

They are semantically equivalent according to Version 2.5 of OMG's UML standard, see section 7.5.4.1

What follows are relevant quotes from that section.

The multiplicity bounds may be shown in the format: <lower-bound> ‘..’ <upper-bound>

If the lower bound is equal to the upper bound, then an alternate notation is to use a string containing just the upper bound. For example, “1” is semantically equivalent to “1..1” multiplicity.

like image 57
Pétur Ingi Egilsson Avatar answered Dec 06 '25 06:12

Pétur Ingi Egilsson