Description: Please according to the following requirements, design of a complex type.
(1) by the real part of the complex, the imaginary part, in the class definition should include the preservation of these two parts of information content.
(2) in the definition of the class structure method, enables the user to construct the object at the same time as the object initialization.
(3) defined in the class complex add, subtract two member to complete the complex function method.
(4) override the toString method, the plural class object can be "real+ imaginary part I" format, output information.
(5) in the main method completes the related test.
To Search:
File list (Check if you may need any files):
ComplexNumber.java