equals method

equals

Tests to see whether the specified object is a Size with the same dimensions as this Size.

Returns

true if obj is a Size and has the same width and height as this Size; otherwise, false.

def equals(self, obj):
    ...
ParameterTypeDescription
objanyThe Object to test.

See Also