title: Calling super.equals and super.hashCode in child class?
body: <p>If I implement <code>equals()</code> and <code>hashCode()</code> in both the parent and child classes, is it necessary to call <code>super.equals()</code> in <code>equals()</code> in the child class, e.g.</p>
  
  <pre><code>public boolean equals(Object obj) {
  
    if (obj.getClass() != ChildClass.class) {
      return false;
    }
  
    return super.equals() &amp;&amp; this.var == ((ChildClass) obj).var;
  
  }
  </code></pre>
  
  <p>I am assuming that the parent class is not Object and is giving the correct definition of equals and hashCode.</p>