ca.bcit.cst.comp2526.assign2b.solution
Class AdditionOperation

java.lang.Object
  extended by ca.bcit.cst.comp2526.assign2b.solution.AbstractOperation
      extended by ca.bcit.cst.comp2526.assign2b.solution.AdditionOperation
All Implemented Interfaces:
Operation

public class AdditionOperation
extends AbstractOperation

Abstract the addition of two numbers.


Constructor Summary
AdditionOperation()
          Construct an AdditionOperation.
 
Method Summary
 int perform(int operandA, int operandB)
          Add operandA to operandB.
 
Methods inherited from class ca.bcit.cst.comp2526.assign2b.solution.AbstractOperation
getCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdditionOperation

public AdditionOperation()
Construct an AdditionOperation.

Method Detail

perform

public int perform(int operandA,
                   int operandB)
Add operandA to operandB.

Parameters:
operandA - the first operand to add.
operandB - the second operand to add.
Returns:
the operands added to one another.