News

Simple factory, factory method, and abstract factory design patterns A simple factory is one that returns an instance of many different classes. Note that these classes may have the same base ...
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 ...
In the Abstract Factory design pattern, the consumer invokes the Factory methods to create the objects. In the Builder design pattern, the Builder class creates an object depending on the ...