mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-14 08:18:23 +00:00
Improve Strategy Javadoc
This commit is contained in:
1 parent
2234a25c76
commit
0a9879a277
1 file changed
+4
-1
@@ -2,7 +2,10 @@ package com.iluwatar.strategy;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Strategy ({@link DragonSlayingStrategy}) encapsulates an algorithm. The containing
|
* The Strategy pattern (also known as the policy pattern) is a software design pattern that
|
||||||
|
* enables an algorithm's behavior to be selected at runtime.
|
||||||
|
* <p>
|
||||||
|
* In this example ({@link DragonSlayingStrategy}) encapsulates an algorithm. The containing
|
||||||
* object ({@link DragonSlayer}) can alter its behavior by changing its strategy.
|
* object ({@link DragonSlayer}) can alter its behavior by changing its strategy.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in new issue
Block a user