auto commit
This commit is contained in:
parent
e0f630be6e
commit
ba76b0365e
|
@ -266,7 +266,7 @@ public class ConcreteFactory2 extends Factory {
|
|||
|
||||
## 类图
|
||||
|
||||
<div align="center"> <img src="../pics//a8644ee5-dc04-40b6-8492-e2d3c922eb04.png"/> </div><br>
|
||||
<div align="center"> <img src="../pics//4885d0bc-1441-460f-bd75-a2088aa7f2d4.png"/> </div><br>
|
||||
|
||||
抽象工厂模式创建的是对象家族,也就是很多对象而不是一个对象,并且这些对象是相关的,也就是说必须一起创建出来。而工厂模式只是用于创建一个对象,这和抽象工厂模式有很大不同。
|
||||
|
||||
|
|
BIN
pics/4885d0bc-1441-460f-bd75-a2088aa7f2d4.png
Normal file
BIN
pics/4885d0bc-1441-460f-bd75-a2088aa7f2d4.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 58 KiB |
Loading…
Reference in New Issue
Block a user