title: How many V table will be created in the following code?
body: <pre><code>class base{
  public:
      virtual void fn() {
  
      }
  };
  
  class der1 : public base {
      void fn() {
  
      }
  };
  
  class der2 : public der1 {
      virtual void fn() {
  
      }
  };
  </code></pre>
  
  <p>I have another question.In definition of class der1, I have not mention "virtual" while redefining function fn. Has it any effect while creating V table</p>