hi everybody
i suppose this question has been answered a countless times, but i can't
seem to find the answer...
how do i call an overloaded version of a constructor from a constructor?
suppose something like this:
class A
{
int field;
A(int i){field = i;}
A()
{
// and here comes the guesswork:
A(1);
}
};
what i want to do is calling another constructor with default arguments.
thanks for any help and hints
- michael