title: UML Composition multiplicity
body: <p>I have a question about indicating multiplicity in an UML diagram.</p>
  
  <p>I have a SpriteObject class, which has a list of animations. The SpriteObject can have 0..* animations. All animations are created inside the SpriteObject and do not exist on their own.</p>
  
  <p>I'm not 100% sure how I should indicate this with multiplicity. After searching the web I have found the following 3 options:</p>
  
  <p>Option 1: The multiplicity should be indicated like this, because every SpriteObject has 0 or more Animations. There is no multiplicity indicated on side of the SpriteObject since the Animation has no clue about the existence of the SpriteObject.
  <img src="https://i.stack.imgur.com/RbxSd.png" alt="enter image description here"></p>
  
  <p>Option 2: The multiplicity should be indicated on both sides like this because we need to indicate the local relationship between the two classes so 1 SpriteObject has 0 or more Animations. 
  <img src="https://i.stack.imgur.com/WTomb.png" alt="enter image description here"></p>
  
  <p>Option 3: The multiplicity should be indicated on both sides likes this, because we need to be able to read the multiplicity and understand it as part of the whole(the game). The game can contain 0..* SpriteObjects and the SpriteObject can contain 0..* Animations. That's why 0..* SpriteObjects has 0..* Animations
  <img src="https://i.stack.imgur.com/zFmWt.png" alt="enter image description here">
  Can anyone tell me which option is the correct one?(if any of them is)</p>