|
-
January 26th, 2005, 11:31 AM
#1
A constructor calls another constructor of the same class?
class Foo {
public:
Foo(char x);
Foo(char x, int y);
...
};
Foo::Foo(char x)
{
...
Foo(x, 0); // this line does NOT help initialize the this object!!
...
}
My questions is why Foo(x,0) doesn't help initialize the this object? Thanks for your suggestions.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|