Experiment two Java object-oriented programming

Source: Internet
Author: User

Experimental content
    1. Initial mastery of unit testing and TDD
    2. Understanding and mastering object-oriented three elements: encapsulation, inheritance, polymorphism
    3. Initial mastery of UML modeling
    4. Familiarity with S.O.L.I.D principles
    5. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.