20,182,326 2019-2020-1 "Object-oriented programming and data structures" third experiment report
Course: "Programming and Data Structures"
Class: 1823
Name: Liu Yingjie
Student ID: 20182326
experiments Teacher: Johnny
experiment Date: September 23, 2019
Compulsory / Elective: Compulsory
1. Experimental content
Download and install and use the IDEA, following the completion of the experiment ( https://www.cnblogs.com/rocedu/p/6371315.html ).
Initial grasp of unit testing and TDD
Understand and master the object-oriented three elements: (! Own to learn) encapsulation, inheritance, polymorphism
Preliminary master UML modeling
On completion of the cloud blue ink (1) - (5) experiments.
2. Experimental procedure and results
Experiment (1):
- The first to write pseudo code
- Translation with a specific programming language a bit, write a usable product code
- Write test case
Experiment (2):
- Hands shot StringBuffer
- Learn to distinguish the difference between the StringBuilder, StringBuffer, String class
- Write test code
Experiment (4)
- TDD way to develop a complex number class Complex
- Write test code
Experiment (5)
- Of the previous code using UML modeling
3. Experimental problems encountered in the process and settlement process
- Question 1: test not run
- Problem 1 Solution:
- Question 2: How to run test codes
- Problem 2 Solution:
Other (perception, thinking, etc.)
UML modeling learned how to write code and test code and TDD, also learned