title: C++: Avoid .cpp files with only an empty (de)constructor
body: <p>When I have a header file like this:</p>
  
  <pre><code>#ifndef GAMEVIEW_H_
  #define GAMEVIEW_H_
  
  #include &lt;SDL/SDL.h&gt;
  
  class GameView
  {
  public:
   GameView();
   virtual ~GameView();
  
   virtual void Update() = 0;
   virtual void Render(SDL_Surface* buffer) = 0;
  };
  
  #endif /* GAMEVIEW_H_ */
  </code></pre>
  
  <p>I need to create a <code>.cpp</code> file like this:</p>
  
  <pre><code>#include "GameView.h"
  
  GameView::~GameView()
  {
  
  }
  
  GameView::GameView()
  {
  }
  </code></pre>
  
  <p>This is a bit stupid. Just a .cpp file for an empty constructor and deconstructor.
  I want to implement that method simply in the header file. That is much cleaner.</p>
  
  <p>How to do this?</p>