public class OperationAdd extends Operation
leftOperand, rightOperand| Constructor and Description |
|---|
OperationAdd(int leftOperand,
int rightOperand) |
OperationAdd(int leftOperand,
Operation rightOperation) |
OperationAdd(Operation leftOperation,
int rightOperand) |
OperationAdd(Operation leftOperation,
Operation rightOperation) |
| Modifier and Type | Method and Description |
|---|---|
int |
calculate()
Delegates the operation between two integers to the subclasses
|
protected String |
getSymbol()
Retrieve the operation symbol
|
getLeftOperand, getLeftOperation, getRightOperand, getRightOperation, process, toStringpublic OperationAdd(int leftOperand,
int rightOperand)
public OperationAdd(int leftOperand,
Operation rightOperation)
public OperationAdd(Operation leftOperation, int rightOperand)
public int calculate()
OperationCopyright © 2015. All rights reserved.