In the Workspace, type in
CountViewContainer new openOn: (IntegerCount new).
Highlight it and "do it." A small integer count will appear. You can do increment, decrement, and reset by click on those three buttons.
Then, do something to see if ASCIICount, DateCount, and SequenceCount work by yourself.
Is it possible to show all the functionalities of those four Counts in one
line? Yes, it is. First, select the Count class. You will need to
create some class methods instead of instance
methods. So click on the option button before class below.
In the protocol list, add a new protocol demos, and create the
following five methods in it:
integerCountDemo
CountViewContainer new openOn: (IntegerCount new)
aSCIICountDemo
CountViewContainer new openOn: (ASCIICount new)
dateCountDemo
CountViewContainer new openOn: (DateCount new)
sequenceCountDemo
CountViewContainer new openOn: (SequenceCount new)
demo
Count integerCountDemo.
Count dateCountDemo.
Count aSCIICountDemo.
Count sequenceCountDemo
Now, in the Workspace, type Count demo and run it to see if
all four kinds of counts are popped up.