All pastes #420137 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-04-01 22:07 UTC
rendered paste body
Create a class called baseCalc() that stores two numbers as properties.  Next, create a calculate() method that prints the numbers to the browser.  Finally, create classes called addcalc(), subcalc(), mulcalc(), and divcalc() that inherit functionality from basecalc() but override the calculate() method and print appropriate totals to the browser.