mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-18 23:28:18 +00:00
docs: improve factory
This commit is contained in:
@@ -31,7 +31,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
* create and return objects of varying classes, in order to hide the implementation logic
|
||||
* and makes client code focus on usage rather than objects initialization and management.
|
||||
*
|
||||
* <p>In this example an alchemist manufactures coins. CoinFactory is the factory class and it
|
||||
* <p>In this example an alchemist manufactures coins. CoinFactory is the factory class, and it
|
||||
* provides a static method to create different types of coins.
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user