Write methods to implement the multiply, subtract, and divide operations for integers. The results of all of these are integers. Use only the add operator.
You should implement following methods:
Operations() constructorminus(a, b) Subtraction, returns a - bmultiply(a, b) Multiplication, returns a * bdivide(a, b) Division, returns a / bExample:
Operations operations = new Operations(); operations.minus(1, 2); //returns -1 operations.multiply(3, 4); //returns 12 operations.divide(5, -2); //returns -2
Note: