Explorer constructor
nWhat should we do if the constructor is called with a negative value for the parameter stamina?
n
npublic Explorer (String name, rooms.Room location, int hitStrength,
n int stamina) { …
n if (stamina >= 0)
n staminaPoints = stamina;
n else
n staminaPoints = 0; …
n}
n