Introduction to Java Design Patterns: Introduction to Design Patterns

The book Design Patterns divides design patterns into three aspects: object creation, structural combination between objects and objects, and interaction between objects: Creational Patterns, Structural Patterns, and Behavioral Patterns Patterns).

Among them, Creation Design Patterns (Creational Patterns) describe how to create an object. It hides the details of object creation, so that the program code does not depend on the specific object, so that when we add a new object, there is almost no need to modify the code. Structural Design Patterns (Structural Patterns) describe how classes and objects are organized to form large structures, mainly using inheritance to organize interfaces or implementations. Behavioral Design Patterns (Behavioral Patterns) describe algorithms and the assignment of tasks between objects. It describes not only the design patterns of objects or classes, but also the communication patterns between them.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326530337&siteId=291194637