Difference between cardinality "*", and "0..*" - UML
Asked Answered
A

1

10

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.

Anglesite answered 1/9, 2013 at 18:17 Comment(0)
H
13

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..*.”

Huebner answered 1/9, 2013 at 21:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.