public int hashCode(){
  return numerator.hashCode() + denominator.hashCode();
}

public int hashCode ( ) { return numerator . hashCode ( ) + denominator . hashCode ( ) ; }
a method that returns the sum of hashes corresponding to the numerator and denominator of this rational
