title: Error: member function may not be declared outside of its class.
body: <p>I have my heap.h file that contains: </p>
  
  <pre><code>bool insert(int key, double data);
  </code></pre>
  
  <p>and in my heapCPP.cpp file I have:</p>
  
  <pre><code> bool heap::insert(int key, double data){
      bool returnTemp;
      node *temp = new node(key, data);
  
      returnTemp = insert(temp);
      delete temp;
      return returnTemp;
  }
  </code></pre>
  
  <p>However, I get a error saying "member function "heap::insert" may not be redeclared outside its class. </p>