[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[LC++]virtual functions
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