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

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

public class MultiplicationOperation
extends AbstractOperation

Abstract the multiplication of two numbers.


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

MultiplicationOperation

public MultiplicationOperation()
Construct an MultiplicationOperation.

Method Detail

perform

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

Parameters:
operandA - the first operand to multiply.
operandB - the second operand to multiply.
Returns:
the operands multiplied by one another.