mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-03 05:20:09 +00:00
Update README.md
This commit is contained in:
1 parent
4ae82e4302
commit
01bdcdc1ed
1 file changed
+3
@@ -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