This book first introduces the 23 design patterns summarized by gof to give readers a general understanding of the classification of design patterns. Before explaining the specific design patterns, I first explained how to use the UML language and some modeling tools, so that readers can first understand how to use the tools, in the subsequent explanations, we can reach a consensus on the representation of some images.
Then, based on the categories of Creation Mode, structure mode, and behavior mode, we will explain the specific design mode so that readers can learn a certain type of design mode, you can understand all the design patterns under this category, and compare and analyze the differences between the design patterns of the same category.
When explaining the specific design model, each chapter will be carried out through a dialogue between beginners and technical experts to improve reader interest. First, the practice of not using this design pattern is given, and then the practice of using the design pattern is given, so that the reader can clearly recognize the benefits of using the design pattern at this time. Next, each chapter summarizes the definition, principles, and timing of the design model, and provides a specific example to deepen the reader's understanding of the design model, finally, the advantages and disadvantages of using this design pattern are given.
In fact, all the design patterns are inseparable from the object-oriented thinking. Therefore, in the last chapter of this book, we will explain the object-oriented design principles.ProgramThe most essential thing in design.