boolean (Object obj) { if (obj == this) return true; if (obj == null || obj.getClass() != this.getClass()) return false; var that = (Person)obj; return Objects.equals(this.name, that.name) && this.age == that.age; }