Is there a specific rule on how Overriding equals() & hashCode() in sub classes considering super fields ?? k
equals()
hashCode()
Regarding the accepted @CPerkins answer, I don't think the given equals() code will work reliably, due to the likelihood that the super.equals() method will also check for class equality. A subclass & superclass will not have equal classes.