multiplicity - Wrong cardinality in UML class diagram -


my school teacher , me arguing how write correct cardinality relation between 2 classes:

    customer ----places->---- order 

so exercise tells me, 1 customer has 0 - x orders , 1 order belongs 1 specific customer. idea was:

    customer -1---places->---*- order 

my teachers solution:

    customer -1..*---places->---*- order 

so, think it? hope, i'm right :)

the first 1 correct. 0..*, or * short, goes next order class. 1..1, or 1 short, goes next customer class.

are sure teacher specified uml?


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -