Designing programs |
Up until this point in the semester, we have been providing you with a lot of information about how to structure your programs. That is, we have told you what the classes are and what methods they require. We have sometimes even told you what instance variables they require. It has been your responsibility to fill in the details. How should the instance variables be declared? What statements do you need to put into your methods to get the desired effect? Increasingly, we will expect you to be more independent in analyzing the problem statement and creating from that a design.
Today, we will look back at some previous labs and try to understand why they were designed that way. Why did we choose the classes and methods that we did? When you are faced with a design problem, how should you make those decisions? Then we will look at our current lab, Frogger, to understand what might be a reasonable design.
Designing programs |