8 :_enteredValue(enteredValue), _internalValue(internalValue), _selectedUnit(selectedUnit) {};
16 _enteredValue = rhs._enteredValue;
17 _internalValue = rhs._internalValue;
18 _selectedUnit = rhs._selectedUnit;
22 std::string
Print(
void) {
return std::to_string(_enteredValue) +
" " + _selectedUnit; }
26 double _internalValue;
27 std::string _selectedUnit;
Definition PhysicalQuantities.h:5
const double GetInternalValue(void) const
Definition PhysicalQuantities.h:23
PhysicalQuantities()
Definition PhysicalQuantities.h:9
std::string Print(void)
Definition PhysicalQuantities.h:22
PhysicalQuantities(double enteredValue, double internalValue, std::string selectedUnit)
Definition PhysicalQuantities.h:7
PhysicalQuantities & operator=(const PhysicalQuantities &rhs)
Definition PhysicalQuantities.h:10