I have a class with a member variable of another class:
class MeasurementUnit { private: MeasurementMultiplier _multiplier;
Actually I woul
In all constructors of your class MeasurementUnit, you need to initialize the member variable _multiplier in the initializer list. Example:
MeasurementUnit
_multiplier
MeasurementUnit::MeasurementUnit() : _multiplier(1,2,3) {}