Skip to content

Commit

Permalink
Merge pull request #412 from slawiko/patch-1
Browse files Browse the repository at this point in the history
Override annotation added
  • Loading branch information
iluwatar committed Mar 26, 2016
2 parents 9074a9c + 0c56d80 commit d406f0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions decorator/src/main/java/com/iluwatar/decorator/Troll.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
*/
public class Troll implements Hostile {

@Override
public void attack() {
System.out.println("The troll swings at you with a club!");
}
Expand All @@ -38,6 +39,7 @@ public int getAttackPower() {
return 10;
}

@Override
public void fleeBattle() {
System.out.println("The troll shrieks in horror and runs away!");
}
Expand Down

0 comments on commit d406f0f

Please sign in to comment.