CJCoding With Joseph

Interface Method With Parameters

The interface ICalculator declares int Add(int a, int b). Complete the Calculator class so Add returns the sum of its two parameters. Do NOT write a Main method.

For Add(2, 3) the program prints:
5

Expected Output:

5
Topics:
Interfaces
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.