Object counts allowed by a one-to-many multiplicity

A company's staff records are modelled by the UML class diagram below. The association between Department and Employee has multiplicity 1 at the Department end and 3..8 at the Employee end.


Two class boxes, Department and Employee, joined by a solid line with 1 written near Department and 3..8 written near Employee.


Using only the constraints in the diagram, find:

  • the minimum and the maximum total number of employees when the company has exactly 5 departments;
  • the fewest and the most departments possible when the company has exactly 50 employees.

Give each answer as a whole number.

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More UML Class Diagrams Questions: