Miscellany
public text v1 · immutableCreate 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.