Notizen
Writing a equals() method
Inhalt der Notizen (1)
Seite 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.
}
}
}
Informationen
- Beschreibung
- Computer Science Notiz am Writing a equals() method, erstellt von Tate Johnson am 27/04/2021.
- Erstellt von
- Tate Johnson · Apr 2021
- Aktualisiert
- 27 Apr 2021
- Aufrufe
- 0
- Bewertung