title: Adding Children in Cocos2d
body: <p>In the cocos2d engine, there is a method to add an object as a child of another. </p>
  
  <p>So for example in this line of code in a Game.m file:</p>
  
  <p><code>CCMenu *menu = [CCMenu menuWithItems:pauseButton, nil];
      pauseButton.position = ccp(s.width/2 - pauseButton.contentSize.width/2, (-s.height/2) 
                                 + pauseButton.contentSize.height/2);
      [self addChild:menu z:100];</code></p>
  
  <p>You can see the menu instance of CCMenu is added as a child to the class object of Game. What does this actually do? Is it for memory purposes?</p>