Skip to content

Commit 0c56d80

Browse files
committed
Override annotation added
I think this is a typo
1 parent 9074a9c commit 0c56d80

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)