public class OperationSub extends Operation
leftOperand, rightOperand| Constructor and Description |
|---|
OperationSub(int leftOperand,
int rightOperand) |
OperationSub(int leftOperand,
Operation rightOperation) |
OperationSub(Operation leftOperation,
int rightOperand) |
OperationSub(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 OperationSub(int leftOperand,
int rightOperand)
public OperationSub(int leftOperand,
Operation rightOperation)
public OperationSub(Operation leftOperation, int rightOperand)
public int calculate()
OperationCopyright © 2015. All rights reserved.