Skip to content

Commit

Permalink
Override annotation added
Browse files Browse the repository at this point in the history
I think this is a typo
  • Loading branch information
slawiko committed Mar 26, 2016
1 parent 9074a9c commit 0c56d80
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 0c56d80

Please sign in to comment.