The design pattern is a set of repeated use, most people know, after the purpose of classification, code design experience Summary. Design patterns are used for reusable code, making the code easier for others to understand. Ensure code reliability. There is no doubt that design patterns win over others in the system. Design patterns make coding truly engineering, and design patterns make the cornerstone of software design the same as a block of bricks and tiles in a building. The reasonable application pattern of the project can solve many problems perfectly.
I. Classification of design Patterns
In general, design patterns fall into three categories:
Five types of created models: Factory method mode, abstract Factory mode, singleton mode, builder mode, prototype mode
Structure mode, a total of seven kinds: Adapter mode, adorner mode, proxy mode, appearance mode, bridging mode, combined mode, enjoy meta-mode
Behavioral patterns, total 11 types: Strategy mode, template method mode, observer mode, iteration sub-mode, responsibility chain mode, Memo mode, state mode, visitor mode, broker mode, interpreter mode
In fact
23 Design Patterns in Java development