Suppose I have a class like this
class Base
{
private:
int i;
int j;
public:
Base(int i)
{
this->i = i;
j = 0;
}
Base(int i, int j)
{
this->i = i;
this->j = j;
}
virtual void f()
{
cout<<"in base f()"<<endl;
}
};
VPTR gets initialized in the beginning of the constructor. But in this case there is no default constructor, only 2 parameterized constructors. Where will the VPTR be initialized?