Refactor CalculatorInput class
Closed this issue · 0 comments
davidtcalabrese commented
parseInput would then only have to create a single CalculatorInput object rather than three. To do this CalculatorInput must be updated to have three instance variables: operand1, operand2, operator.
possible downside: if the program is modified in future to accept more than two inputs this CalculatorInput class will need to be refactored again.