#include "mathcell.h" using namespace std; MathCell::MathCell(int initValue) : IntCell(initValue) {} void MathCell::addToValue(int adder){ setValue(getValue() + adder); } void MathCell::multValue(int multiplier){ setValue(getValue()*multiplier); } void MathCell::increment(){ setValue(getValue()+1); } void MathCell::print(ostream& out){ out << "MathCell: " << getValue() << endl; }