What is wrong with the following implementation of equals() for Complex? public boolean equals(Complex that) { return

Question:

What is wrong with the following implementation of equals() for Complex?

public boolean equals(Complex that)

{

return (this.re == that.re) && (this.im == that.im);

}

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question
Question Posted: