Hi guys! I'm pretty new to C++ but I have to use it for work (fluid simulations). I have two classes: an object of the first class act as a vector of objects of the second class. Both of them have a "Read()" so in the Class1::Read() I'll have something like for obj[i] = new Class2() I want to pass a parameter to Class2, so I created a function SetParameter(bool parameter) in Class2 with a private _parameter in the Class2 header file. Class2::SetParameter(bool parameter) { _parameter = parameter; } I want to check that in Class2::Read() this parameter has a specific value but I have that even if I use something like obj[i].SetParameter(parameter) in the Class2::Read() method the parameter has it's default value. Sorry for the long message but I can't share you the code and I had to give you some context! I hope that everything is clear