Abstract Factory, Factory Method, Builder

后端 未结 6 1149
清歌不尽
清歌不尽 2021-01-30 09:21

It may seem as if this is question is a dupe, but please bear with me - I promise I\'ve read the related posts (and the GOF book).

After everything I\'ve read, I still

6条回答
  •  遇见更好的自我
    2021-01-30 09:30

    • Factory Method pattern - When you want to build family of complex objects.
    • Object builder pattern - When you want to allow user to plugin their custom implementation into your framework

    Please visit the following url for more details.

    http://xeon2k.wordpress.com

提交回复
热议问题