added strategy pattern sample

This commit is contained in:
Ilkka Seppala
2014-08-23 13:18:53 +03:00
parent 2d0905a5e9
commit 6157f22ea4
8 changed files with 96 additions and 0 deletions
@@ -0,0 +1,10 @@
package com.iluwatar;
public class MeleeStrategy implements DragonSlayingStrategy {
@Override
public void execute() {
System.out.println("With your Excalibur you severe the dragon's head!");
}
}