J ♥Syntax for interfaces?42

Warm ups:

  • Write the syntax pattern for an interface with a method signature
  • Write the syntax pattern for a class that implements an interface

Writing Challenge: Use an interface to mark Monsters and Rooms as Attackable (has a method attacked(Attackable attacker)). An attacked monster should take 10 points of damage. Attacking a Room should cause monsters in the room to take 1 point of damage.