
3.5 Programming Activity 1: Calling Methods 109
Figure 3.8 shows the independenceDay object reference and object data
after setting the object reference to null.
3.5 Programming Activity 1: Calling Methods
Let’s put this all together with a sample program that uses a SimpleDate
object. In this Programming Activity, we’ll use a program that displays the
values of the object data as you instantiate the object and call the methods
of the class.
In the Chapter 3 Programming Activity 1 folder on the CD-ROM accom-
panying this book, you will find three source files: SimpleDate.java, Simple-
DateClient.java, and Pause.java. Copy all the .java and .class files ...