Abastract Factory and Factory Mehod
Abastract Factory:
the main body is Object , Object have many ObjectFactory ,the Implemention is as parameter.
Factory Mehod:
the main body is Implemention, Implemention have Factory Method which will be redefined by Object. in fact , we can assume that the Object act as a parameter
Notes of Leanring Desing patterns
博客介绍了抽象工厂和工厂方法两种模式。抽象工厂以对象为主体,对象有多个对象工厂,实现作为参数;工厂方法以实现为主体,实现有工厂方法,会被对象重新定义,可将对象视为参数。

被折叠的 条评论
为什么被折叠?



