On Sun, Aug 20, 2017 at 11:56:28PM +0200, Ingo Weinhold wrote:
This works pretty much the same way for a derived class: The compiler also
creates code for it that creates its vtable. Unlike one might think, the
vtable is not initialized by copying the entries from the base classes'
vtables and replacing the slots for overridden methods (that would save us a
lot of trouble). Instead the vtable is directly filled with pointers to the
functions that should be called, as known at the compile time of that class.