Hello everyone,
Is it legal and good code to call one constructor from another in the same class? I show the pseudo code below.
Code:Test(bool param1, bool param2) { // set and manipulate param1 // call constructor with a single bool input parameter Test (param2); } Test(bool param2) : active (param2) { // do something }
thanks in advance,
George



LinkBack URL
About LinkBacks



