This method is used to check if the current object is equal to the given object.
True if the two objects are equal, false otherwise.
The object to compare with.