Smallest valid snapshot

An online store's class diagram has two associations. Each Order contains 1..∗1..* LineItems, and each LineItem belongs to exactly 11 Order. Each LineItem refers to exactly 11 Product, and each Product appears in 0..∗0..* LineItems. No other classes or associations exist.


A tester wants the smallest complete object diagram, showing every link each object takes part in, that contains exactly 3 Order objects and conforms to the class diagram. What is the smallest possible total number of objects across all classes? Give your answer as a whole number.

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 Object Diagrams Questions: