umlclass-diagramooadmultiplicity

OOAD clarification on multiplicity or cardinality


I am confused about the cardinality/ multiplicity when designing class diagrams. My main confusion is when to represent 1---* relationship. For ex in case of passenger and seat classes, passenger will be allotted to one seat, where as the seat can be allotted to one passenger at A POINT IN TIME but over a period of its existence it can be allotted to many passengers.

So should the seat--->passenger be 1-1 or 1-*?


Solution

  • Let's summarize:

    Conclusions: the relation between Seat and Passenger is *-* (many to many)