call constructor inside class 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) {
}