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

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

public class SubtractionOperation
extends AbstractOperation

Abstract the subtraction of two numbers.


Constructor Summary
SubtractionOperation()
          Construct an SubtractionOperation.
 
Method Summary
 int perform(int operandA, int operandB)
          Subtract operandA from 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

SubtractionOperation

public SubtractionOperation()
Construct an SubtractionOperation.

Method Detail

perform

public int perform(int operandA,
                   int operandB)
Subtract operandA from operandB.

Parameters:
operandA - the minuend.
operandB - the subtrahend.
Returns:
the subtrahend subracted from the minuend.