I was trying to run this code but it's not working.
You should create a calculator with its basic functions.
Create a calculator class which has sum, subtract, division, and multiply methods, all of them take two int parameters and return the resulted int.
Example: When the sum method is called as sum(5,6), it should return 11 which is the sum of 5 and 6
How can I fix it ?
An error occurred:
Test 1 method sum in class MyCalculator cannot be applied to given types; required: no arguments found: int,int reason: actual and formal argument lists differ in length method divid in class MyCalculator cannot be applied to given types; required: no arguments found: int,int reason: actual and formal argument lists differ in length method subtract in class MyCalculator cannot be applied to given types; required: no arguments found: int,int reason: actual and formal argument lists differ in length method multiply in class MyCalculator cannot be applied to given types; required: no arguments found: int,int reason: actual and formal argument lists differ in length
Correct any cells that are not running correctly, and use Restart and Run All from the Kernel menu to be sure all cells are running correctly. Then click Test Code again to check your results.