Namespace: CalculatorClassLibrary
Implements: ICalculator
Description: Abstract base class of all calculators.
Constructors |
Usage |
Calculator(IInputBuffer) |
Initializes an implementation of Calculator abstract class with injected services |
Properties |
Usage |
Input<string> |
get data held in calculator input buffer |
Methods |
Usage |
Add(decimal) |
add input to calculator input buffer |
Add(string) |
add input to calculator input buffer |
Clear() |
clear all input and expressions in calculator |
Evaluate() |
evaluate current expressions/input stored in calculator |
Undo() |
revoke the most recent modification to calculator input buffer |