Notes
Writing a equals() method
Content of the notes (1)
Page 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.
}
}
}
Information
- Description
- Computer Science Note on Writing a equals() method, created by Tate Johnson on 27/04/2021.
- Created by
- Tate Johnson
- Views
- 0
- Rating