"puzzlecracker" <ironsel2000@gmail.com> wrote in message
news:1189988476.241266.17880@22g2000hsm.googlegroups.com...
>I am kind of confused with the vpointer. Assuming the class has a
> virtual function. Would ONE pointer (occupying 16 bits) to virtual
> table be create for the class or One for each object? How does this
> pointer fit into aligment properties of an object (of the class) or
> class itself?
You can take a look at the following code for an example minimalist
implementation of vtables in C:
http://groups.google.com/group/comp.lang.c/browse_frm/thread /1b106926ba5db19f
This shows the internals of a very-basic abstract interface technique for C.
It might help you understand the that a possible C++ implementation might
use one per-object pointer to a single per-class static/constant vtable...