Merge pull request #412 from slawiko/patch-1

Override annotation added
This commit is contained in:
Ilkka Seppälä 2016-03-26 21:03:34 +02:00
commit d406f0f9c6

View File

@ -29,6 +29,7 @@ package com.iluwatar.decorator;
*/
public class Troll implements Hostile {
@Override
public void attack() {
System.out.println("The troll swings at you with a club!");
}
@ -38,6 +39,7 @@ public class Troll implements Hostile {
return 10;
}
@Override
public void fleeBattle() {
System.out.println("The troll shrieks in horror and runs away!");
}