This preview shows page 1. Sign up to view the full content.
Unformatted text preview: is doing the same thing as in the other implementation. 6. The second implementation, with methods, has additional lines of code to define the methods. Yet it is a half a page *shorter*. How did that happen? 7. Could the main method be made even shorter? How should the ideal length of the main method be determined? 8. Why were some variables moved into the main method? Why were others left as static variables? Could other variables be moved out of main? 9. Why are some methods private and one method public? 10. board is passed to many of the methods. Should it be a global variable? static or not? public or private?...
View Full Document
This note was uploaded on 02/28/2012 for the course CSC 337 taught by Professor Johnson during the Fall '11 term at University of Arizona- Tucson.
- Fall '11
- Object-Oriented Programming