title: Class redefinition: How to wrap methods within class
body: <p>I am getting <strong>'class' type redefinition</strong>, which I understand is because class <code>A</code> is in both the header and the cpp file. which both look like this:</p>
  
  <p><strong>header.h</strong></p>
  
  <pre><code>namespace NS {
    class A : B {
      // Definitions Here
    }
  }
  </code></pre>
  
  <p><strong>main.cc</strong></p>
  
  <pre><code>namespace NS {
    class A : B {
      void DoSomething(){}
      void DoSomethingElse(){}
    }
  }
  </code></pre>
  
  <p>I have read that I need to convert the <strong>main.cc</strong> file to look like this:</p>
  
  <pre><code>namespace NS {
    void A::DoSomething(){}
    void A::DoSomethingElse(){}
  }
  </code></pre>
  
  <p>I am not a huge fan of how that looks, so is there a way for me to format it like the first example without getting the redefinition error by maybe changing the header file?</p>