here is my program , I am little confuse about how many vtable
and virtualpointe
r will be created for the program. and if we don't create a virtual function in derive class will vpinter
will create for that.
#include<iostream>
using namespace std;
class abc
{
virtual void aaa();
};
void abc::aaa()
{
}
class ddd:public abc
{
void ddda();
virtual void sddd();
};
void ddd::ddda()
{
}
void ddd::sddd()
{
}
int main()
{
abc d;
ddd *y;
abc *ab;
}