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

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

public class DivisionOperation
extends AbstractOperation

Abstract the division of two numbers.


Constructor Summary
DivisionOperation()
          Construct an DivisionOperation.
 
Method Summary
 int perform(int operandA, int operandB)
          Divide operandA by 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

DivisionOperation

public DivisionOperation()
Construct an DivisionOperation.

Method Detail

perform

public int perform(int operandA,
                   int operandB)
Divide operandA by operandB.

Parameters:
operandA - the dividend.
operandB - the divisor.
Returns:
the the dividend divided by the divisor.