title: Number of Virtual tables and Virtual Pointers in a C++ Program
body: <p>Let say we have below program:</p>
  
  <pre><code>class A
  {     public:
        virtual fun(){};
  };
  class B:public A
  {     public:
       virtual fun(){};
  };
  int main()
  {
       A a1;
       B b1;
   }
  </code></pre>
  
  <p>My question is how many <code>vtables</code> and how many <code>vptrs</code> will be created, when we run this program?</p>