Skip to content

Commit d406f0f

Browse files
committed
Merge pull request iluwatar#412 from slawiko/patch-1
Override annotation added
2 parents 9074a9c + 0c56d80 commit d406f0f

File tree

1 file changed

+2
-0
lines changed
  • decorator/src/main/java/com/iluwatar/decorator

1 file changed

+2
-0
lines changed

decorator/src/main/java/com/iluwatar/decorator/Troll.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
*/
3030
public class Troll implements Hostile {
3131

32+
@Override
3233
public void attack() {
3334
System.out.println("The troll swings at you with a club!");
3435
}
@@ -38,6 +39,7 @@ public int getAttackPower() {
3839
return 10;
3940
}
4041

42+
@Override
4143
public void fleeBattle() {
4244
System.out.println("The troll shrieks in horror and runs away!");
4345
}

0 commit comments

Comments
 (0)