title: Virtual Table layout in memory?
body: <p>how are virtual tables stored in memory? their layout?</p>
  
  <p>e.g. </p>
  
  <pre><code>class A{
      public:
           virtual void doSomeWork();
  };
  
  class B : public A{
      public:
           virtual void doSomeWork();
  };
  </code></pre>
  
  <p>How will be the layout of virtual tables of class A and class B in memory?</p>