J
jesse
In java, one constructor can call another constructor through this(...)
for instance
class foo
{
public:
foo(int k) { this(k,false)};
foo(int k, boolean m){...};
}
It seems i can't find similar syntax in c++.
what is the notion for one constructor to call another?
sorry for this bloody basic question.
jesse
for instance
class foo
{
public:
foo(int k) { this(k,false)};
foo(int k, boolean m){...};
}
It seems i can't find similar syntax in c++.
what is the notion for one constructor to call another?
sorry for this bloody basic question.
jesse