reset password
Author Message
ccasti26
Posts: 4
Posted 22:41 Feb 10, 2020 |

When making the .equals method, would it be a good idea to call the element's own .equals or do we assume that the method might not have been written in a custom class?

jungsoolim
Posts: 38
Posted 10:23 Feb 11, 2020 |

If you use objects from the standard library, use can use object.equals(..) method. However, if you created your own object, you should override equals method.