
398 CHAPTER 7 Object-Oriented Programming,Part 2: User-Defined Classes
7.8 Programming Activity 1: Writing a Class Definition, Part 1
In this programming activity, you will write the methods for an Airport
class. Then you will run a prewritten client program that instantiates sev-
eral Airport objects, calls the methods that you have written, and displays
the values of the objects’ data.
The Airport class has two instance variables: the airport code and the num-
ber of gates.
In the Chapter 7 Programming Activity 1 folder on the CD-ROM accom-
panying this book, you will find three source files: Airport.java, Airport-
Client.java, and Pause.java, as well ...