Improved code comments for template method example.

This commit is contained in:
Ilkka Seppala
2015-01-16 08:52:30 +02:00
parent 991653062d
commit b12243b94c
4 changed files with 16 additions and 3 deletions

View File

@@ -2,8 +2,11 @@ package com.iluwatar;
/**
*
* Template Method (StealingMethod) defines skeleton for the algorithm and
* subclasses (HitAndRunMethod, SubtleMethod) fill in the blanks.
* Template Method defines a skeleton for an algorithm. The algorithm subclasses
* provide implementation for the blank parts.
*
* In this example HalflingThief contains StealingMethod that can be changed.
* First the thief hits with HitAndRunMethod and then with SubtleMethod.
*
*/
public class App {