We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9074a9c commit 0c56d80Copy full SHA for 0c56d80
decorator/src/main/java/com/iluwatar/decorator/Troll.java
@@ -29,6 +29,7 @@
29
*/
30
public class Troll implements Hostile {
31
32
+ @Override
33
public void attack() {
34
System.out.println("The troll swings at you with a club!");
35
}
@@ -38,6 +39,7 @@ public int getAttackPower() {
38
39
return 10;
40
41
42
43
public void fleeBattle() {
44
System.out.println("The troll shrieks in horror and runs away!");
45
0 commit comments