28 lines
554 B
Java
Raw Normal View History

package com.iluwatar.templatemethod;
2014-08-23 13:37:42 +03:00
/**
*
* SubtleMethod implementation of StealingMethod.
*
*/
2014-08-23 13:37:42 +03:00
public class SubtleMethod extends StealingMethod {
@Override
protected String pickTarget() {
return "shop keeper";
}
@Override
protected void confuseTarget(String target) {
System.out.println("Approach the " + target
+ " with tears running and hug him!");
2014-08-23 13:37:42 +03:00
}
@Override
protected void stealTheItem(String target) {
System.out.println("While in close contact grab the " + target
+ "'s wallet.");
2014-08-23 13:37:42 +03:00
}
}