A
Aneel
What is difference occurs for the following two classes:
class newclass {
private:
int x;
public:
newclass(int a){x=a;} // <<< constructor
};
AND
class newlcass {
private:
int x;
public:
newclass(int a): x(a){} // <<< constructor
};
class newclass {
private:
int x;
public:
newclass(int a){x=a;} // <<< constructor
};
AND
class newlcass {
private:
int x;
public:
newclass(int a): x(a){} // <<< constructor
};