Testing stamina
n
Provide an initial value for the
object’s
stamina
.
n
Invoke the
takeHit
method
repeatedly.
n
After each invocation, query the
object with the method
stamina
and report the result.
n
n
n