title: Out-of-line definition error on a class but it is declared in the header file
body: <p>Now this is a weird problem. I was coding two days ago and stopped and then continued just now. On my header file (<code>Fruit.h</code>) I added a method called <code>animateGrow()</code> like so:</p>
  
  <p>Fruit.h:</p>
  
  <pre><code>class Fruit {
  private:
     // Member variables here
  
  public:
     // Other methods here
     void animateGrow( );
  };
  </code></pre>
  
  <p>But when I try to add the same method in the CPP file, I get an <code>Out-of-line definition of 'animateGrow' does not match any declaration in 'Fruit'</code> error. It's declared in the header but Xcode does not seem to be able to find that method.</p>
  
  <p>Fruit.cpp:</p>
  
  <pre><code>#include "SimpleAudioEngine.h"
  #include "Fruit.h"
  #include "Tree.h"
  
  using namespace cocos2d;
  using namespace CocosDenshion;
  
  Fruit::Fruit( ) {
     // Constructor
  }
  
  // Getter Methods
  // Setter Methods
  // Other Methods
  
  void Fruit::animateGrow( ) {
     // I get an error here when I type it.
  }
  </code></pre>
  
  <p><strong>Full Code</strong>: (links removed)
  (In the code, the <code>Tree</code> class exists and all other methods and functions are working fine except for the <code>animateGrow()</code> as it gives me the error)</p>