"Milan Cermak" <ni*@nil.nil> wrote in message
news:9A*******************@news.chello.at...
Hi all,
I have sort of philosophical question.
Contructor and destructor behavior points me to this.
Is table of virtual methods held in object?
Do I get it right that every created object has its own table of virtual
methods? Even if they are of one class?
Typically each object holds a pointer to a table of virtual methods
(actually pointers to virtual methods). There is one table for each class,
and every object of the same class has the same pointer.
Multiple and virtual inheritance complicate this picture however.
If you are interested have a look at the book 'Inside the C++ Object Model'
by Stanley Lippman.
john