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