
428 CHAPTER 7 Object-Oriented Programming,Part 2: User-Defined Classes
7.14 Programming Activity 2: Writing a Class Definition, Part 2
In this programming activity, you will complete the definition of the Air-
port class. Then you will run a prewritten client program that instantiates
several Airport objects, calls the methods that you have written, and dis-
plays the values of the objects’ data.
Copy into a directory on your computer all the files from the Chapter 7
Programming Activity 2 folder on the CD-ROM accompanying this book.
Note that all files should be in the same directory.
Load the Airport.java source file; you’ll notice that the class alr ...