As the `equals` method's parameter is typed as generic `Any?`, any type of object may be passed to it. The method implementation should not assume it will only be used to test objects of its own class type. It must instead check the parameter's type.