I have a question here. The correct options for this question are
Code: Select all
public final boolean equals(Object)
public final int hashCode()
public final String toString()
I am studying on the OCP Study Guide from Selikoff and Boyarsky and there the authors say that you can override the methods that are inserted automatically in a record definition, including equals(), hashCode() and toString(). However, in order to be overridden they cannot be defined as final.
Or am I missing something here?
Thank you for the help!
Cheers,
Ilenia