Comments for template method example.

This commit is contained in:
Ilkka Seppala 2014-08-31 11:31:03 +03:00
parent 94b289801b
commit 2e07a685b0
3 changed files with 17 additions and 0 deletions

View File

@ -1,5 +1,12 @@
package com.iluwatar;
/**
*
* Template Method (StealingMethod) defines skeleton for the
* algorithm and subclasses (HitAndRunMethod, SubtleMethod)
* fill in the blanks.
*
*/
public class App
{
public static void main( String[] args )

View File

@ -1,5 +1,10 @@
package com.iluwatar;
/**
*
* Halfling thief uses StealingMethod to steal.
*
*/
public class HalflingThief {
private StealingMethod method;

View File

@ -1,5 +1,10 @@
package com.iluwatar;
/**
*
* Template Method base class.
*
*/
public abstract class StealingMethod {
protected abstract String pickTarget();