Design Patterns are a set of reusable, most known, categorized purposes, code design experience Summary. Design patterns are used in order to reuse code, make code easier for others to understand, and ensure code reliability. There is no doubt that design patterns in others in the system are multi-win; Design patterns make code writing truly engineering; Design patterns are the cornerstone of software engineering, like the structure of a building.
Four types of design patterns:
1. Creative Mode:
These design patterns provide a way to create objects and hide the creation logic instead of instantiating objects directly using the new operator. This allows the program to have greater flexibility in determining which objects need to be created for a given use case, including: Singleton mode, prototype mode, Factory mode, abstract Factory mode, Builder mode
2. Structure Mode:
These design patterns involve classes and object composition. The concept of inheritance is used to compose interfaces and define methods to combine objects to obtain new features, including: Combination mode, bridging mode, decorator mode, appearance mode, enjoy meta mode, proxy mode, adapter mode.
3. Behavior mode:
These design patterns are particularly focused on communication between objects, including: Responsibility chain mode, template mode, Memo mode, observer mode, strategy mode, adjuster mode, state mode, visitor mode, iterator mode, interpreter mode, command mode.
4.J2EE mode:
These design patterns specifically involve the presentation layer. These patterns are Sun Java Center
identified by.
Java Design Patterns