Factory, Abstract Factory and Factory Method

后端 未结 3 1540
被撕碎了的回忆
被撕碎了的回忆 2020-11-28 05:51

I am really confused about these three terms.

My understanding is that:

  • in the Factory pattern, there is no concrete factory. The factory builds t

3条回答
  •  醉酒成梦
    2020-11-28 06:18

    FACTORY PATTERN: returns objects of one family
    ABSTRACT FACTORY: returns objects of more than one family.

    So you may say Abstract factory contains more than one factory

提交回复
热议问题