SE450: Java classes: Equality [16/22] Previous pageContentsNext page

A good equals means the following is true. It is:

  1. Reflexive
  2. Symmetric
  3. Transitive
  4. Consistent
  5. Non-null

Previous pageContentsNext page