Here's an example that we started last time that demonstrates
the use of accessor methods:
Click on
CrossHairs
to show the example.
Here's an example that makes use of an integer variable, and that
demonstrates the "+" operator on combinations of strings and numbers:
Click on
ClickCounter
to show the example.
The onMouseMove method of the following program provides
even more complex examples of displaying strings and numbers, and
also demonstrates the use of constants.
Click on
MouseMeter
to show the example.
Basketball: The first attempt:
Click on
Basketball
to show the example.