With Abstract Factory, Builder, and Factory mode can be separated from the interface and specific implementation, this paper discusses the difference between the three.
The difference between the three is exemplified below, wherein the customer is equivalent to the mode user. The merchant is equivalent to the pattern itself: 1. Factory is similar to buy a brand machine, customers can choose Lenovo or Dell, the merchant model is to provide a variety of brands; 2 Builder Similar to the assembly machine, the business model is the customer's request. After the merchant is assembled, it provides the whole machine; 3. Abstract factory Similar to DIY, the merchant mode is the merchant to provide parts, the customer is assembled.
The small chick shot in the specific project is only used by Factory mode. Because it is a self-sufficient small farmer economy, it is still called "factory", 嘻嘻 ...