Task: write a complex class that allows the user to work with complex numbers.
-
the work consists of three files: complex.java — implementation of methods of the complex class; test-complex.java — testing and testing capabilities class;
-
the complex class must contain fields for storing the real and imaginary parts of a complex number;
-
the complex class must contain the following methods: default constructor, constructor with 2 parameters, calculation of the number module, calculation of the number argument, arithmetic operations (+,-).