Named constants
n
Use named constants rather than
literals in preconditions and
postconditions.
u
public int
suit ( )
F
ensure:
F
result == Card.CLUB ||
F
result == Card.DIAMOND ||
F
result == Card.HEART ||
F
result == Card.SPADE.