Design Patterns

23 Design Patterns Study Notes (7)

23 Design Pattern Study Notes (1) /qq_51495235/article/details/115358623 23 Design Pattern Study Notes (2) /qq_51495235/article/details /115358846 23 Design Pattern Study Notes (3) /qq_51495235/article/details/115359128 23 Design Pattern Study Notes (4) /qq_51495235/article /details/115359246 23 design pattern study notes (5) /qq_51495235/article/details/115359272 23 design pattern study notes (6) /qq_51495235 /article/details/115359367 25. [Status Mode] 25.1 Definition and Characteristics of State Patterns …

23 Design Patterns Study Notes (7) Read More »

05. Abstract Factory Pattern + Reflection–AbstractFactory&Reflect

Abstract Factory pattern (AbstractFactory) and reflection technology (Reflect) are recorded in the previous notes, and now the two functions are combined. Take the food in the fast food restaurant as an example. First of all, there are foods from fast food restaurants as the base category of products, and then there are two types of …

05. Abstract Factory Pattern + Reflection–AbstractFactory&Reflect Read More »

[Design Patterns] Practical Explanation of Chain of Responsibility Patterns

Article directory 1. What is the Chain of Responsibility Model? 2 When to use the Chain of Responsibility pattern Three actual combat 4. Use Cases Five, mode summary 5.1 Advantages 5.2 Disadvantages 🍍Daily recommendation 1. What is the [Chain of Responsibility Model ?] The chain of responsibility pattern is a design pattern that [decouples] the …

[Design Patterns] Practical Explanation of Chain of Responsibility Patterns Read More »

The Adapter Pattern of JAVA Design Patterns

1 Overview Convert the interface of a class to another interface that the client wants. The Adapter pattern enables classes to work together that would otherwise not work together due to incompatible interfaces. Problem solved That is, the Adapter pattern enables classes that would otherwise not work together due to incompatible interfaces to work together. …

The Adapter Pattern of JAVA Design Patterns Read More »

Template Patterns in Java Design Patterns

Table of contents Introduction to Template Patterns Example of Template Pattern Advantages and disadvantages of template pattern Summarize Introduction to Template Patterns Defining the skeleton of an algorithm in an operation, while deferring some steps to subclasses, template methods allow subclasses to redefine certain steps of the algorithm without changing the structure of the algorithm. …

Template Patterns in Java Design Patterns Read More »

Structural Pattern 2 Other Patterns

Article directory 1. Bridge Mode 1.1 Role Responsibilities 1.2 Usage scenarios 2 Decorator pattern 2.1 Example 2.2 Role Responsibilities 2.3 Use in the framework 3. Adapter mode 3.1 Role Responsibilities 3.2 Examples 3.3 Applications in the framework 4 Facade Mode 4.1 Role Responsibilities 4.2 Examples 4.3 Applications in the framework 5 Combination Mode 5.1 Role …

Structural Pattern 2 Other Patterns Read More »

Six Principles of Design Patterns (1)—-Single Responsibility Principle

[]One of the six principles of the [design pattern] [Single Responsibility Principle] 1. What is the Single Responsibility Principle First, let’s look at the definition of single responsibility. Single Responsibility Principle, the full name is Single Responsibility Principle, or SRP for short. A class should have only one reason to change _ For a class, …

Six Principles of Design Patterns (1)—-Single Responsibility Principle Read More »

Seven Principles of Design Patterns Adapter Pattern Implementation

Table of contents 🚀Seven Principles of Design Patterns🚀 🚀🚀The division of design patterns🚀🚀 🚀🚀🚀Adapter Mode🚀🚀🚀 🚀🚀🚀🚀Class Adapter Pattern Implementation🚀🚀🚀🚀 🚀🚀🚀🚀🚀Object Adapter Pattern Implementation🚀🚀🚀🚀🚀 🚀🚀🚀🚀🚀🚀 Adapter mode application🚀🚀🚀🚀🚀🚀 🚀Seven Principles of [Design Patterns🚀] 1. The principle of opening and closing The core of the open-closed principle is open to extension and closed to modification. When the …

Seven Principles of Design Patterns Adapter Pattern Implementation Read More »