public class SimpleCalc { public int value; public void calculate() { value += 7; }} And: public class MultiCalc extends SimpleCalc { public void calculate() { value -= 3; } public void calculate(int multiplier) { calculate(); super.calculate(); value *= multiplier; } public static void main(String[] args) { MultiCalc calculator = new MultiCalc(); calculator.ca1cu1ate(2); System.out.printIn("Value is: " +ca1cu1ator.va1ue); }}