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

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -