Welcome![Sign In][Sign Up]
Location:
Downloads WEB Code JSP/Java
Title: ComplexNumber Download
 Description: (1) the preparation of a complex class ComplexNumber, including instance variables real, image, as follows: 1) construction method ComplexNumber (double a, double b) the 2) ComplexNumber add (ComplexNumber x)// plural object with another plural object plural addition operations, and return a new complex object 3) ComplexNumber sub (ComplexNumber x)// plural object with another plural object subtraction of complex numbers, and returns a new complex object 4) a double getReal ()// access to complex objects the imaginary part of the real part 5) double getImage ()// Get the plural object) void show ()// display in accordance with the+ imaginary of the real part of the Department of i (such 10+8i) in the form of the value of the complex object) String toString ()// return complex object corresponding to the string (such as 4+7i)
 Downloaders recently: [More information of uploader luosw90]
 To Search:
File list (Check if you may need any files):
ComplexNumber.java
    

CodeBus www.codebus.net