[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [LC++]virtual functions



> > 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?

mehul.


________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony