0

I'm trying to get into Java oriented programming, and have seen this characterisation a few times. Specifically the *; I know that the 1..* means that a Section belongs to Infinite number of articles but at least 1. but what does * by itself mean 0..* ?, 1..* ?

enter image description here

I know this might seem like a minor grammar thing, but I haven't come across this specific way in any text books. I'm just trying to understand what is meant by it.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Jarvy
  • 13
  • 2
  • *: ...i know that the 1..** means... – Jarvy Dec 08 '20 at 12:13
  • A quick search will find any number of UML tutorials, e.g. https://www.visual-paradigm.com/guide/uml-unified-modeling-language/uml-class-diagram-tutorial/ – stridecolossus Dec 08 '20 at 12:15
  • i know.. its more of theory vs practice. since i cant find the deffinition of * by it self in any textbooks, since it does to aper just by it self. thow irl implimentations, ive seen they just do the * by itself – Jarvy Dec 08 '20 at 12:19
  • Java has nothing to do with UML, except that UML is a modeling method to model class relationships. It could be used with any oo language. – NomadMaker Dec 08 '20 at 13:09

1 Answers1

0
  • 1 means 1 and only 1
  • 1..* means >= 1
  • 0..* means >= 0
  • a single star means >= 0 means 0..*

Note : Some UML tools use N instead of star

MsieurKris
  • 387
  • 1
  • 4
  • 14
  • you're welcome. if my answer is OK for you, you can accept it to close your question – MsieurKris Dec 08 '20 at 12:57
  • and if you need to communicate you model with someone else you can pronounce * "many" so 1..* mean a one to many relationship. – Jocke Dec 08 '20 at 12:58