I saw the 2 articles published here about this question but can't seem to understand it.
i have a class like this withe some overloaded constructors
class Abcd{
public: //sorry for forgetting this earlier
Abcd();
Abcd(int i);}
Abcd::Abcd(int i){
............... ............... .......
..Big code here calculating
something using int i.......
............... ............... ............... ...}
// Why won't This work?
Abcd::Abcd(){
Abcd::Abcd(10);}
i m quite sure c++ supports such things like in java. and if it don't can someone plesae tell me a alternate way.
-----------------------------------------------------------------------------------------
ThankX everyone for the fast replies.
What I actually wanted to do was to cerate a class 'Encode' with two constructors
Encode(QCString * value){ .....big code in herer......}
Encode(const char* value){ Encode(new QCString(value) ); }