CJCoding With Joseph

Implement an Interface Method That Changes State

The ICounter interface requires a Count property and an Increment method. The Counter class already has the Count property. Complete Increment so it raises Count by one. The tester increments a few times and prints Count. Do NOT write a Main method.

After three calls to Increment, the program prints:
3

Expected Output:

3
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.