public ComplexNumber add(ComplexNumber otherNumber){ ComplexNumber newComplex; float newA = a + otherNumber.getA(); float newB = b + otherNumber.getB(); newComplex = new ComplexNumber(newA, newB); return newComplex; }//end add
public ComplexNumber add(ComplexNumber otherNumber){ ComplexNumber newComplex; float newA = a + otherNumber.getA(); float newB = b + otherNumber.getB(); newComplex = new ComplexNumber(newA, newB); return newComplex; }//end add