mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 18:58:44 +00:00
Update README.md
This commit is contained in:
@@ -12,3 +12,6 @@ Intent: Separate the construction of a complex object from its representation so
|
||||
|
||||
##Factory Method
|
||||
Intent: Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.
|
||||
|
||||
##Prototype
|
||||
Intent: Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype.
|
||||
|
||||
Reference in New Issue
Block a user