GoConqr has a new look! Let us know what you think.

Notes

Writing a equals() method

Tate Johnson Computer Science English 1 page

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

Feedback

What is it about?

What do you think of the new look?

How do you like it?