# 20182331 2019-2020-1 "Object-oriented programming and data structures" third experiment report

Course: "Programming and Data Structures" Class: 1823
Name: High lenient
Student ID: 20182331
experiments Teacher: Johnny
experiment Date: September 23, 2019
Compulsory / Elective: Compulsory

First, the experiment content

Download and install and use the IDEA, following the completion of the experiment ( https://www.cnblogs.com/rocedu/p/6371315.html ).

  1. Initial grasp of unit testing and TDD

  2. Understand and master the object-oriented three elements: (! Own to learn) encapsulation, inheritance, polymorphism

  3. Preliminary master UML modeling

  4. On completion of the cloud blue ink (1) - (5) experiments.

Second, the experimental process and results

1. Because IDEA is free software, so the first time I downloaded the cracked version, but can not be installed, and finally download and use genuine software according to the script sent by the teacher

2. The teacher's blog Lou guidance MyUtil product code and test code written MyUtil, and its unit tests, step by step by step, the result is correct

3. Contact TDD test mode, first installed function junit IDEA, and then tested according to Test lightbulb Tip generated code and a code for

4. Manually play the StringBuffer, several methods eleven experiments, and to distinguish the differences between StringBuilder, StringBuffer, String class equals the learning method, the error code (tupianequals :) on modifying the page writing the test code according to the above method

5. preliminary UML modeling, the first attempt of the relationship between class diagram drawing program in whiteUML tool, because the software is in English, there are a lot of inconvenience at the time of initial use, after I consulted seniors and students can be considered a preliminary master

Third, the problems encountered during the experiment and settlement process

Question 1: Code of part of the class code, never green run button appears, can not be compiled to run
problem 1 solution: in fact some of the code does not need to compile and run, as long as it can be referenced. But most of this type of code is not the main class, for editing and running, only Xu to add an empty main class in your code.
Question 2: obviously installed jnit package, but in the use of Shique showed no
problem 2 solution: I asked Dongqi Peng and Yan Yuhao but students do not know, finally reinstall aside IDEA, inside reinstall the junit package.

Four other (perception, thinking, etc.)

The experiments to tell the truth is very difficult for me, and for the first time using the IDEA is also very accustomed to, programming is also very difficult, I can not understand some errors often occur, but fortunately there are other students and seniors will sister school to help me to successfully complete this test, this test also taught me a lot of knowledge usually do not notice the dead.

Reference material

Guess you like

Origin www.cnblogs.com/gao-kuanrang/p/11610805.html