Replacing shared layers with owned parts

An animation editor has six Scene objects, each of which must contain three distinct Layer objects. Its existing design fills these eighteen layer positions by sharing eight Layer objects among scenes.


A redesign introduces composition: every Layer must belong to exactly one Scene, and each Scene must still contain three distinct Layers. Each of the eight existing Layers can be assigned to any one Scene, and all eight may be reused. Creating a new Layer produces an independent object with no shared owned parts.


What is the minimum number of additional Layer objects required? Answer in additional Layer objects, as a whole number with zero decimal places.

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 Aggregation Questions: