Adding and subtract complex numbers using OOP structure
I have here a code that should print the sum and difference of two complex numbers. The instructions given are: make the methods add , subtract , and print to be void and test using the constructor's object. public class Complex { /** * @param args */ public double real; public double imag; public String output = ""; public Complex(double real, double imag){ this.real += real; this.imag += imag; } public Complex(){ real = 0; imag = 0; } public double getReal(){ return real; } public void setReal(double real){ this.real = real; } public double getImag(){ return imag; } public void setImag