Override annotation added

I think this is a typo
This commit is contained in:
Slava Shchaurouski 2016-03-26 15:22:33 +03:00
parent 9074a9ca05
commit 0c56d800c5

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!");
}