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

View File

@ -0,0 +1,10 @@
package com.iluwatar;
public class SpellStrategy implements DragonSlayingStrategy {
@Override
public void execute() {
System.out.println("You cast the spell of disintegration and the dragon vaporizes in a pile of dust!");
}
}