
7.9 The Object Reference this 401
Figure 7.6
AirportClient When
Complete
As you can see, the AirportClient has declared two Airport object references,
airport1 and airport2. The references are null because no Airport objects
have been instantiated.
The client application, AirportClient, will instantiate the Airport objects and
call the methods you have written for the Airport class. As the application
does its work, it displays a status message at the bottom of the window that
indicates which method it has called. It also displays the current values of
both Airport objects. You can check your work by comparing the values in
the objects with the status ...