Page 313 - AP Computer Science A, 7th edition
P. 313

When everything is working with the grids, you could add a Display class that has Grid variables and a display method.
Try a Player. Give him a list of ships, two grids and a Display.
Then create a GameManager. Give her two Player variables and be sure she has a playGame method.
The program development shown above is an example of bottom- up development.
Vocabulary Summary
Know these terms for the AP exam:
  Vocabulary
software development
object-oriented program
program specification
program design
program implementation
test data
program maintenance
top-down development
Meaning
Writing a program
Uses interacting objects Description of a task
A written plan, an overview of the solution The code
Input to test the program
Keeping the program working and up to date
Implement main classes first, subsidiary classes later
Doesn’t use other classes of the program
  independent class











































































   311   312   313   314   315