First, the last three test cases are submitted through the
Second, study the learning StringBuffer in the way of TDD, submit the unit test case and test pass
Third, using [WHITESTARUML] to model the code in the experiment two, the Hair class diagram (class diagram only two fewer classes)
Iv. Unit test code and running success and code-on-Cloud codes link
Task: Develop a plural class Complex in TDD, which requires the following://define properties and generate Getter,setterdouble realpart;double imagepart;//define Constructors public Complex () The public Complex (double r,double I)//override objectpublic boolean equals (Object obj) the publicly String toString ()//Defines the common method: Subtraction Complex Complexadd (Complex a) Complex complexsub (Complex a) Complex Complexmulti (Complex a) Complex Complexdiv ( Complex a)
Use [WHITESTARUML] to model the code in Experiment two, and send a class diagram (only two fewer classes in class diagram)
2017-2018-2 20165234 Experiment Report of Java object-oriented programming