Skip to content

Commit e26a55a

Browse files
committed
Update 工厂三兄弟之简单工厂模式(四).md
1 parent 9932c44 commit e26a55a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

工厂三兄弟之简单工厂模式(四).md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,10 @@ class Client {
111111

112112
(2) 客户端只知道传入工厂类的参数,对于如何创建对象并不关心。
113113

114-
疑问
115114

116115
练习
117116

118117
> 使用简单工厂模式设计一个可以创建不同几何形状(如圆形、方形和三角形等)的绘图工具,每个几何图形都具有绘制draw()和擦除erase()两个方法,要求在绘制不支持的几何图形时,提示一个*UnSupportedShapeException*
119118
120-
119+
---
121120
[简单工厂模式源码](https://github.com/quanke/design-pattern-java-source-code/tree/master/Chapter%2004%20Simple%20Factory)

0 commit comments

Comments
 (0)