- This will be covered on Tuesday, February 25th.
It is great preparation for the first exam, so study it BEFORE
the Tuesday class.
- See the CoinPurseDemo2.java code.
It is a driver and demo program for the Purse class, but it also
illustrates many techniques on its own. It would be said to be
a client of the Purse class.
- See the Purse.java file and the
Java code for the Purse class, which
has many more methods than the original version from Big Java
textbook, pages 90-92.
- Try 8 dimes and 8 nickels and 0 quarters (no quarters).
Is there something strange about the reported Totals
(Click the Totals YELLOW button).
- How was the 3D or the shadow effect created for the four round
buttons? Look at the code to see how it was done.
- Did you try all SIX different command buttons that are
available in the GUI user interface? One of the command buttons
is a little less obvious than the other five are.
- More later... Please study this carefully!
Count the local variables, parameters and PIVs in the
two classes Purse and CoinPurseDemo2. Remember, PIV is
my acronym for Private Instance Variables.