11 lines
248 B
Java
11 lines
248 B
Java
|
package com.iluwatar;
|
||
|
|
||
|
public class ProjectileStrategy implements DragonSlayingStrategy {
|
||
|
|
||
|
@Override
|
||
|
public void execute() {
|
||
|
System.out.println("You shoot the dragon with the magical crossbow and it falls dead on the ground!");
|
||
|
}
|
||
|
|
||
|
}
|