Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UML multiplicity difference

What is the difference between multiplicity * and 0..*?

For example two versions (A and B) of the same relationship: Example

What will be more correct for statement Web-service is used by any number of users?

like image 309
kyrylomyr Avatar asked Jul 25 '26 05:07

kyrylomyr


1 Answers

While Bala's answer is correct, I'd like to add for the records that it's not just a question of style. The UML specifications are explicit about this notational shortcut:

UML 2.5.1, p.35: 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. A multiplicity with zero as the lower bound and an unspecified upper bound may use the alternative notation containing a single star “ * ” instead of “0..*” multiplicity.

So, both diagrams are equivalent. Moreover, if you're explicit with 0..*, you would probably do as well with 1..1:

enter image description here

like image 147
Christophe Avatar answered Jul 28 '26 02:07

Christophe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!