Answers for "call constructor from another c++"

C++
0

call constructor from another c++

//You can use delegating constructor (since C++11) like this:
Foo(int iX)  {
    // ...
}; 

Foo() : Foo(10) {
  
}
Posted by: Guest on November-16-2020

Code answers related to "call constructor from another c++"

Browse Popular Code Answers by Language