Skip to content

Commit 136005d

Browse files
authored
Update README.md
1 parent e60f3cb commit 136005d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,12 @@ If the number of decision mechanisms in the simple factory design pattern was in
6565
Therefore, there may increased the total production cost of objects for the simple factory design more than the previous patterns. </br>
6666
In addition, each time a new class is added or a class is removed, the class responsible for generating the objects also needs to be corrected. </br>
6767

68+
<b>Prototype Design Pattern;</b>
69+
As it is known, if the objects we will produce are based on a certain template, allows us to clone an object </br>
70+
which we have produced before and use it by changing only the necessary fields instead of producing the a new object. </br>
71+
Unlike other creational design patterns, since it produces new objects by cloning an existing object instead of producing an object from </br>
72+
scratch that may be reason of the lowest total cost of producing objects compare by other creational patterns.
73+
74+
75+
6876

0 commit comments

Comments
 (0)