CombinationLock
responsibilities
n
Know:
u
the 3-digit combination.
u
whether locked or unlocked.
u
the last three digits entered.
n
Do:
u
lock.
u
unlock, when given the proper
combination.
u
accept a digit.