Counter Class
Write a class called Counter
whose initializer takes an int
parameter and assigns it to an instance field called count
.
Also give the Counter
class an instance method called increment
that increases the count
field by 1 but does not return anything.