logo

Crowdly

¿Qué código hay que poner en ___[1]___ para implementar el método equals() de ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

¿Qué código hay que poner en

___[1]___ para implementar el método equals() de la clase Point (sin considerar

el control de argumentos de entrada)

public class Point<T> {

  private T x, y;  

  public

Point (T x, T

y) {

     this.x = x;

     this.y = y;

  }

  @Override

  public boolean

equals(Object

obj) {

     return ___[1]___ ;

  }

}

0%
100%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.uam.es?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!