2017-2018-2 20165234 Experiment Report of Java object-oriented programming

Source: Internet
Author: User
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

Related Article

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.