+ 2
Why use is use of this : if there is no const variable
..
5 Answers
+ 12
Can you elaborate on your question with examples?
+ 4
I think he's asking about member initializer list in constructors.
It just looks better, and beyond that you can call nested class constructors e.g:
class Body
{
public:
int radius;
Body(int r):
radius(r)
{}
};
class Object
{
public:
Body body;
string name;
Object():
name("Unknown"),
body(50)
{}
};
+ 1
o mpmppppppppp.0ppppp0ppp0..0p0
pppppp0ppppppp o
.
.ppp opp..pppppp0ppppppp.
pp.pl..p.p
pp.pppppppppppppppppp0plp.ppp.p.p.p.p.p.p.0ppp.p,lo.pp.pp.p00p0p.pppppp0ppppppp.p,pppp.pp0p.p.pl.m,?
0
Can you please explain your question once again? You can even choose hindi as the language to ask your question.