In C++, there are a couple ways to make constructors - with the Member Initialization List (MIL), with this->field1 = 1
, or by just doing field1 = 1
.
Which is the best way to construct a structure, when is it ideal to use these three methods??
I'm most curious about the difference between this->field1
and field1
, do they not refer to the same field in a structure?