title: Why am I getting this redefinition of class error?
body: <p>Apologies for the code dump:</p>
  
  <p>gameObject.cpp:</p>
  
  <pre><code>#include "gameObject.h"
  class gameObject
  {
      private:
      int x;
      int y;
      public:
      gameObject()
      {
      x = 0;
      y = 0;
      }
  
      gameObject(int inx, int iny)
      {
          x = inx;
          y = iny;
      }
  
      ~gameObject()
      {
      //
      }
      int add()
      {
          return x+y;
      }
  };
  </code></pre>
  
  <p>gameObject.h:</p>
  
  <pre><code>class gameObject
  {
      private:
      int x;
      int y;
      public:
      gameObject();
  
      gameObject(int inx, int iny);
      ~gameObject();
      int add();
  };
  </code></pre>
  
  <p>Errors:</p>
  
  <pre><code>||=== terrac, Debug ===|
  C:\terrac\gameObject.cpp|4|error: redefinition of `class gameObject'|
  C:\terrac\gameObject.h|3|error: previous definition of `class gameObject'|
  ||=== Build finished: 2 errors, 0 warnings ===|
  </code></pre>
  
  <p>I can't figure out what's wrong. Help?</p>