Skip to content

Commit 0a9879a

Browse files
committed
Improve Strategy Javadoc
1 parent 2234a25 commit 0a9879a

File tree

1 file changed

+4
-1
lines changed
  • strategy/src/main/java/com/iluwatar/strategy

1 file changed

+4
-1
lines changed

strategy/src/main/java/com/iluwatar/strategy/App.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
/**
44
*
5-
* Strategy ({@link DragonSlayingStrategy}) encapsulates an algorithm. The containing
5+
* The Strategy pattern (also known as the policy pattern) is a software design pattern that
6+
* enables an algorithm's behavior to be selected at runtime.
7+
* <p>
8+
* In this example ({@link DragonSlayingStrategy}) encapsulates an algorithm. The containing
69
* object ({@link DragonSlayer}) can alter its behavior by changing its strategy.
710
*
811
*/

0 commit comments

Comments
 (0)