how to call a constructor from another class in c++ 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) {
}