Welcome to the Treehouse Community
Looking to learn something new?
Charles Williams2,680 Points
How does "if (equals(other))" work?
How does this work?
I get that we are checking if the current instance of Treet is equal to another Treet instance called "other", but why don't we have to specify what we are comparing "other" to?
Kevin Faust15,353 Points
that can be written also as:
So essentially we are comparing the current object with the "other" object.