A modelization of the Expression interface and it's implemented classes. An Expression can be either an Operator ( +, -, *, etc..) , a Variable or a Number.
Implemented in Java
, demonstrating the OOP
programming model.
The Minus, Divide, Multiply and Plus are only some of the possible Operator child classes. Due to the nature of the Operator class, many more operator based classes can be implemented.