Write a Counter
class that models a simple tally counter. The class should have three methods: getClicks()
, click()
(which increases the counter by 1), and reset()
.
Then write a CounterTester
main program that demonstrates the use of the Counter
class.