hi all. I'm not sure if its possible but can you call a different constructor inside a constructor of a object? ie can i have different constructors call a single constructor to set up the object
class foo
{
public:
foo(int)
foo(double)
//...
};
foo::foo(int number)
{
this = foo((double)number); // ?
}
any help would be appreciated. thanks