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

java.lang.Object
  extended by ca.bcit.cst.comp2526.assign2b.solution.AbstractOperation
All Implemented Interfaces:
Operation
Direct Known Subclasses:
AdditionOperation, DivisionOperation, MultiplicationOperation, SubtractionOperation

public abstract class AbstractOperation
extends java.lang.Object
implements Operation

Abstracton for mathmatical operations.


Constructor Summary
protected AbstractOperation(char c)
          Construct an AbstractOperation with the specified code.
 
Method Summary
 char getCode()
          Get the type of operation (eg.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ca.bcit.cst.comp2526.assign2b.solution.Operation
perform
 

Constructor Detail

AbstractOperation

protected AbstractOperation(char c)
Construct an AbstractOperation with the specified code.

Parameters:
c - the code of the operation
See Also:
getCode()
Method Detail

getCode

public final char getCode()
Get the type of operation (eg. +, 1, *, or /)

Specified by:
getCode in interface Operation
Returns:
the type of operation.