On 29/10/2004, at 1:14 PM, choube mehul wrote:
how many?
For each object of class base or class derived. Here: one virtual table for object 'd'.
one for base? and one for derived?
You have just one object 'd', so you have just one virtual table within the memory space of that object.
now if i add a pointer variable base *ptr then will a additional virtual table be created? 2 virtual tables one for ptr and another for d?
Regards, Paul Gearon
Software Engineer Tucana Technologies http://www.tucanatech.com
Catapultam habeo. Nisi pecuniam omnem mihi dabis, ad caput tuum saxum immane mittam. (Translation from latin: "I have a catapult. Give me all the money, or I will fling an enormous rock at your head.")