
Write the code for the remaining instructions, compiling and running the
program after completing each task. The program will display the changes
you make to the object data.
The pause between animations is set by default to two seconds. To change
the pause time, change the value assigned to animationPause on line 13 to
the number of seconds you would like to pause between animations.
112 CHAPTER 3 Object-Oriented Programming,Part 1: Using Classes
DISCUSSION QUESTIONS
1. After instructions 6 and 7 have executed,why do the day and month values get
set to 1?
2. At the end of the execution of the program,a NullPointerException is generated.
Which statement ...