Also, if I don't override `equals` it compares the...
# getting-started
f
Also, if I don't override
equals
it compares the pointer by default, correct?
a
it depends on what you are comparing
data class
is compared field by field, I believe
f
yea I read that its different for data classes
I was talking about normal classes
my own
k
Yes, the default
equals
implementation checks for actual object identity.