B
Birt
to only initialize part of members?
class A
{
int m1;
int m2;
int m3
public:
A(v2, v3) : m2(v2), m3(v3) {}
};
class A
{
int m1;
int m2;
int m3
public:
A(v2, v3) : m2(v2), m3(v3) {}
};
Birt said:to only initialize part of members?
class A
{
int m1;
int m2;
int m3
public:
A(v2, v3) : m2(v2), m3(v3) {}
};
Birt said:to only initialize part of members?
class A
{
int m1;
int m2;
int m3
public:
A(v2, v3) : m2(v2), m3(v3) {}
};
Birt said:to only initialize part of members?
class A
{
int m1;
int m2;
int m3
public:
A(v2, v3) : m2(v2), m3(v3) {}
};
Note that i've added a virtual destructor.
Birt said:to only initialize part of members?
class A
{
int m1;
int m2;
int m3
public:
A(v2, v3) : m2(v2), m3(v3) {}
};
Julie said:SaltPeter wrote:
Which is only necessary if the class is intended to be derived from, otherwise
it should be considered inappropriate.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.