Introduction to design patterns, design patterns
I. Introduction to design patterns
Design pattern is a set of summary of code Design experiences that are repeatedly used, known to most people, classified and catalogued. The design pattern is used to make code reusable, make it easier for others to understand, and ensure code reliability. There is no doubt that the design pattern is win-win for others and the system; The design pattern enables code compilation to be truly engineered; The design pattern is the cornerstone of the software engineering, just like the structure of the building.
Ii. Design Pattern Classification
- Creation Mode: how to create an object and when to create an object
- Structural mode: How the object is organized and what structure should it adopt?
- Behavior mode: defines the responsibilities of each object and the communication mode between objects.
3. 23 design modes