Apuntes
Writing a equals() method
Contenido del apunte (1)
Página 1
public boolean equals(Object o) {
if ( o == null) {
return false;
}
else {
if (this.getClass() != o.getClass()) {
return false;
}
else {
return what ever needs to be returned in here to see if the two items are equal.
}
}
}
Información
- Descripción
- Computer Science Apunte sobre Writing a equals() method, creado por Tate Johnson el 27/04/2021.
- Creado por
- Tate Johnson
- Visitas
- 0
- Valoración