We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94b2898 commit 2e07a68Copy full SHA for 2e07a68
3 files changed
template-method/src/main/java/com/iluwatar/App.java
@@ -1,5 +1,12 @@
1
package com.iluwatar;
2
3
+/**
4
+ *
5
+ * Template Method (StealingMethod) defines skeleton for the
6
+ * algorithm and subclasses (HitAndRunMethod, SubtleMethod)
7
+ * fill in the blanks.
8
9
+ */
10
public class App
11
{
12
public static void main( String[] args )
template-method/src/main/java/com/iluwatar/HalflingThief.java
@@ -1,5 +1,10 @@
+ * Halfling thief uses StealingMethod to steal.
public class HalflingThief {
private StealingMethod method;
template-method/src/main/java/com/iluwatar/StealingMethod.java
+ * Template Method base class.
public abstract class StealingMethod {
protected abstract String pickTarget();
0 commit comments