Computer extending calculator and overriding the calculate
class CalculatingDevice {
private String name;
double sum = x + y;
return name + ": " + sum;
System.out.println(result);
}
super(name);
}
return superResult + ", " + subtractResult;
}
}
@Override
return superResult + ", " + multiplyResult + ", " + divideResult;
}
new Computer("Cray"),
new CalculatingDevice("Abacus"),
}


