reset password
Author Message
rgallegos
Posts: 29
Posted 11:10 Oct 05, 2018 |

When testing the getEmployee| > , < , ==|salary methods, are we being tested with an int or a double?
Salaries are typically whole numbers so an int would suffice. Doubles are not comparable unless we're allowed to use the Double methods.
Or do we just overload?

kknaur
Posts: 540
Posted 12:08 Oct 05, 2018 |

Salaries can have cents in them.  Doubles are comparable, you just need to take into account rounding errors.