title: Best Practices Virtual
body: <p>Is it best practices to put the <code>virtual</code> keyword in the header files of the derived classes?</p>
  
  <p>Here is an example:</p>
  
  <pre><code>class A
  {
  public:
      virtual void Func();
  };
  </code></pre>
  
  <p>Would you derive class B as this:</p>
  
  <pre><code>class B : public A
  {
  public:
      virtual void Func();
  };
  </code></pre>
  
  <p>Or this:</p>
  
  <pre><code>class B : public A
  {
  public:
      void Func();
  };
  </code></pre>