设计模式
设计模式
城南少年与猫
学海无涯,互相学习交流
展开
-
一文带你了解建造者模式及相关实例解析
1.简介The builder pattern is a design pattern designed to provide a flexible solution to various object creation problems in object-oriented programming. The intent of the Builder design pattern is to...原创 2019-12-21 11:21:10 · 151 阅读 · 0 评论 -
具体聊一聊简单工厂模式、工厂方法模式和抽象工厂模式
1.工厂模式简介In class-based programming, the factory method pattern is a creational pattern that uses factory methods to deal with the problem of creating objects without having to specify the exact clas...原创 2019-12-01 17:44:12 · 147 阅读 · 0 评论 -
简单易用策略模式分析与实例详解
1.简介In computer programming, the strategy pattern (also known as the policy pattern) is a behavioral software design pattern that enables selecting an algorithm at runtime. Instead of implementing a...原创 2019-12-01 17:43:17 · 152 阅读 · 0 评论