Closed anewway closed 3 years ago
There maybe some typing error because only the secondUser will print the same hashCode() with user, and the thirdUser will not.
secondUser
hashCode()
user
thirdUser
Well spotted! Indeed, we should show off two data classes with the same contents here, otherwise it doesn't make a lot of sense with the description we've provided. Thank you for the contribution! 🎉
There maybe some typing error because only the
secondUser
will print the samehashCode()
withuser
, and thethirdUser
will not.