[LC++]virtual functions

choube mehul choube_mehul at yahoo.com
Thu Oct 28 16:45:01 UTC 2004


when is the virtual table created?

will a virtual table created in the following
scenario?
if created why?
if not created why?

code sample:

class base
{
virtual void print (void)
{
cout << "base"<<endl;
}
};

class derived
{
void print (void)
{
cout << "derived" << endl;
}
};

int main (int argc, char argv)
{
derived d;

return 0;
}

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




More information about the tuxCPProgramming mailing list