"Top-line Design" "First high-level design to determine the required classes and methods."
"Understand the process of implementation" "focus on what's going on in the program and visualize what objects need to be" "Flowchart"
"Object-oriented thinking; focus on the" things "that appear in the program, not the" process "
"When you start writing programs" "follows good object-oriented principles and does not allow a single class to perform too many tasks"
You decide which class to create first? Suppose a class needs to use more than one class, and where does it start?
Key Points:
When creating a new class, you need to write down the following 3 things: "pseudocode--test-and real-code":
- Pseudo code roughly includes the declaration of the instance variable , the declaration of the method , and the logic (the most important logic defines what will happen)
Common pseudo-code statements: Declare make Compute Invoke repeat/while If Get Set Print
Claim definition calculation call loop judgment get input settings print
- Pseudo-code describes what to do rather than how to do it;
- Use pseudo-code to help design the test code;
- The test code should be written before implementing the method;
To create a Java class:
- Find out what the class should do
- Listing instance variables and methods
- Pseudo code for writing methods
- Test procedures for writing methods
- Implementation class
- Test method
- debugging or re-engineering
- Not a reliable invitation to the girls to celebrate the party, such as home?? Seven days hotel to a pitch??
I'll get you a chestnut.
- Game goal: to the minimum number of guesses to knock down the computer to arrange the dot com target.
- Game rules: On the 7*7 grid, create 3 goals for the company. Hit 3 times, then sink.
- Game: "Due to the lack of graphic interface programming, so on this command bar." 】
- The computer asks you to enter the location you are guessing (for example, A3,B2), and the computer responds with hit or miss or sunk. After clearing all the battleships, the game is over.
JAVA Authoring Program "5, chapter 62 Content" "6th Chapter" "Development of the Real program"