Is there any difference between 0..* and * for representing multiplicity in UML Class Diagrams? I cannot find a comprehensive guide online for multiplicity notations. To me they both seem to be saying the same thing conceptually.
UML Multiplicity: "0..*" vs "*"
2.1k views Asked by Ymi At
2
There are 2 answers
2
Christophe
On
While Dave's answer is correct, I'd like to add for the records that it's not just a question of personal opinions. 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.
Related Questions in CLASS
- Why is this namespace unable to be found?
- How do I initialise a class within a class
- How to solve compiler error: no matching function for call to 'dmhFS::dmhFS()' in my case?
- Tkinter App - My Toplevel window is not appearing. App is stuck in mainloop
- Grouping HTML elements by their class name
- Troubleshooting object instantiation based on role in PHP app
- Using attributes from instances of array of objects in other classes
- Error NullPointerExeception: When trying to add Value in ArrayList & adapter.notifydatachanged
- How to get class properties or fields using reflection in Kotlin/Native?
- why we got same data type in two versions like "int" and "integer" in php?
- Initializing member class with referenced inputs within parent class constructor
- Have a script work multiple times with the same class
- Encapsulation does not seem to work in dart
- Page reloads on button click while event.preventDefault() is used
- C++ - Unknown type name
Related Questions in UML
- steps to create a web app with backend and database and web
- How to present this example concept in UML: Using 2 LCD displays in C/C++
- In the UML diagram, in the Class diagram, what does stereotype mean <<compound>>?
- UML representation of containerized services
- uml class diagram for boxing match
- Polymorphism can be described as:
- Why am I getting a plantUML syntax error with a statechart in a package?
- System or external system as an actor in a use case?
- How to model statechart behavior inheritance using UML?
- Can we have an interface create objects of another interface in UML Class Diagrams?
- Is my relationships correct in my class diagram
- How to attach a Port shape to a class shape?
- How to correctly create a sequence diagram?
- How can I insert activity diagram image to an use case in Enterprise architect?
- Use case extends or include
Related Questions in ASSOCIATIONS
- Can't get XAF/XPO association working as expected
- Is there a way to create a has_many association that just filters items from another has_many association?
- Having trouble populating an array of UUID's into their referenced type
- Sequelize - Wrong sql request generated using include, with a basic example
- How to prevent ActiveRecord from making an associated record in a callback before it is saved?
- Cannot delete GORM many2many association due to foreign key constraint
- Is there a way dynamically set class_name in belong_to associations
- Unable to import models and create associations in sequelize
- Passing an association to a pluggable widget
- How to add associations if I have a custom foreign key using Sequelize?
- How to order ActiveRecord query based on calculations
- Separate 1 column into 2 based on occurrences on the same day in R?
- ExtJS store is not updated or wrongly updated after changing associated object
- Modelling relation between two similar classes in UML
- Accessing a Match record, which belongs to a Run record, which belongs to a User record
Related Questions in CLASS-DIAGRAM
- In the UML diagram, in the Class diagram, what does stereotype mean <<compound>>?
- Visual Studio Class Diagram Class File Location
- Can we have an interface create objects of another interface in UML Class Diagrams?
- Assignment to create a class diagram and structure the system correctly
- Is my relationships correct in my class diagram
- Having issues with Intellij diagram generator
- How to correctly create a sequence diagram?
- How do I position the interface on top?
- How to center allign literals compartment title in Enum class diagram?
- What is the correct representation of inheritance and implementation in the UML class diagram?
- Confused with a symbol in an UML diagram
- How to model the dialogue between users in a UML class diagram?
- StarUML fails to open file with JavaScript error
- Validation of Class Diagram: Is the Proposed Model Accurate?
- Attendance management system uml class diagram
Related Questions in MULTIPLICITY
- Can we have an interface create objects of another interface in UML Class Diagrams?
- Using m..m in multiplicity in UML ER diagram?
- How to read multiplicity in UML
- Using multiplicity without navigability in UML is correct diagram?
- Single object class1 associated with many objects from class2
- How to implement `Show` interface for parameterized tuple?
- UML Aggregation Multiplicity
- UML Multiplicity: "0..*" vs "*"
- Add multiplicity as rows
- Eclipse Papyrus asociation but settings for multiplicity missing
- UML Diagram and Multiplicity with weak entities
- Limiting Child Objects in Class Diagram
- UML association class and OOP languages
- Do I have to initialize an object with "null" in the constructor, if i do not get it as an argument?
- UML Class Diagram Multiplicity
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
There's not any difference, or at least I've never heard of anyone using them differently.
To me, 0..* is more explicit in the sense that it says explicitly that 0 is an expected case. In another case you may write 1..* to show that 0 is not allowed.
In general, I would just pick one style and stick with it for consistency.