c++ make one constructor call another code example
Example: call constructor from another c++
//You can use delegating constructor (since C++11) like this:
Foo(int iX) {
// ...
};
Foo() : Foo(10) {
}
//You can use delegating constructor (since C++11) like this:
Foo(int iX) {
// ...
};
Foo() : Foo(10) {
}