资讯

The abstract factory design is used to a set of related instances without specifying the concrete classes — it uses the factory method design pattern to create instances of classes.
The Builder design pattern falls under the creational pattern category and can be used to build a complex object using some simple objects in a step by step manner.
The first design pattern I ever used was the Factory Method pattern. By adopting that pattern, I moved the code for creating my objects out of my constructors and into a separate method. That ...