Explanation
We have implemented the Calculator class, which has the two properties, num1 and num2.
In the initializer, at line 3 - 4, we have initialized both properties, num1 and num2.
In line 7, we implemented add(), a method that returns the sum, num1 + num2, of both properties.
In line 10, we implemented subtract(), a method that returns the subtraction of num1 from num2.
In line 13, we implemented multiply(), a method that returns the product, num2
×
×
num1, of both properties.
In line 16, we implemented divide(), a method that returns the division of num2 by num1.