S
sks
hi ,
i Have a code snippet as follows
class ABC
{
int &r;
ABC(int a=0): r(a) {}
};
int main()
{
ABC obj;
return 0;
}
We all know that object is created then constructor is called . my
question is what is the status of object when member initialization
list is called .
i Have a code snippet as follows
class ABC
{
int &r;
ABC(int a=0): r(a) {}
};
int main()
{
ABC obj;
return 0;
}
We all know that object is created then constructor is called . my
question is what is the status of object when member initialization
list is called .