Answer:
The following program are :
public class ICalculator2 extends ICalculator {
public int negate() {
currentValue = -currentValue;
return currentValue;
}
}
Explanation:
In the following program firstly, we declare the class "ICalculator2" with the access modifier "public" and it inherits the class "ICalculator".
Then we set the integer type function "negate()" with the access modifier "public".