C++ vtable query
<p>I have a query in regard to the explaination provided here <a href="http://www.parashift.com/c++-faq/virtual-functions.html#faq-20.4" rel="nofollow">http://www.parashift.com/c++-faq/virtual-functions.html#faq-20.4</a></p>

<p>In the sample code the function <code>mycode(Base *p)</code>, calls <code>virt3</code> method as <code>p-&gt;virt3()</code>. Here how exactly the compiler know that virt3 is found in third slot of <code>vtable</code>? How do it compare and with what ?</p>
