Experimental content
- Initial mastery of unit testing and TDD
- Understanding and mastering object-oriented three elements: encapsulation, inheritance, polymorphism
- Initial mastery of UML modeling
- Familiarity with S.O.L.I.D principles
- Understanding Design Patterns
Experimental steps Topic One:
(a) Unit testing
Percentile five-point system: If the score is less than 60, turn to "fail" if the score between 60 and 70, turn into "pass" if the score between 70 and 80, turn into "medium" if the result between 80 and 90, turn into "good" if the result between 90 and 100, turn into "excellent" other, turn to "error".
Topic Two:
Study StringBuffer in the way of TDD
Topic Three:
Extend the design pattern example, experience the application of OCP principle and dip principle, understand the design pattern preliminarily
Let the system support the float class and add the test code in the MyDoc class to indicate that it was added correctly.
Topic Four:
Topic Five
Use STARUML to model the code in experiment two, send class diagram, plus number watermark.
Experiment Summary and experience
- Can be designed according to the requirements of the Code, do not waste energy on the code you want;
- The design of the code to consider the problem more comprehensive, not easy to miss out important links;
Psp:
| Steps |
Time Consuming/min |
Percent/% |
| Demand analysis |
10 |
9 |
| Design |
20 |
18 |
| Code implementation |
30 |
27 |
| Test |
20 |
28 |
| Analysis Summary |
30 |
27 |
Experiment two Java object-oriented programming