What's the difference between the operator *
and the operator 0..*
in UML (unified modeling language)?
I saw this two cardinality operators, but I don't now which one I must to use.
The "0.. *" notation is used to denote "zero or more" (many). The following notation indicates that every object in Class A is associated with zero or more objects in Class B, and that every object in Class B is associated with exactly one object in Class A.
uml. When data modeling methods talk about relationships, they use the term cardinality to indicate how many entities may be linked together. So you might have a relationship between order and customer and say that the cardinality of the relationship is one-to-many.
The notation '*' is a shortcut for '0..*'. the correct notation to use in this case is '*'. From the UML 2.4 spec:
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..*.”
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With