1 Star 0 Fork 11

刘哈哈大笑 / design-pattern

forked from 一刀 / design-pattern 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README

设计模式演示代码库

设计模式:是指在软件开发中,经过验证的,用于解决在特定环境下、重复出现的、特定问题的解决方案。

GoF合著的《设计模式——可复用面向对象软件的基础》23种设计模式演示

6大设计原则

  1. 单一职责原则
  2. 里氏替换原则
  3. 依赖倒置原则
  4. 接口隔离原则
  5. 迪米特法则
  6. 开闭原则

23个设计模式

GoF 把这23种设计模式分为三类:

  1. 创建型模式:抽象了对象实例化的过程,用来帮助创建对象的实例。
    • 单例模式
    • 工厂方法模式
    • 抽象工厂模式
    • 生成器模式
    • 原型模式
  2. 结构型模式:描述如何组合类和对象以获得更大的结构。
    • 外观模式
    • 适配器模式
    • 组合模式
    • 享元模式
    • 装饰模式
    • 桥接模式
  3. 行为型模式:描述算法和对象间职责的分配。
    • 中介者模式
    • 代理模式
    • 观察者模式
    • 命令模式
    • 迭代器模式
    • 模板方法模式
    • 策略模式
    • 状态模式
    • 备忘录模式
    • 解释器模式
    • 职责链模式
    • 访问者模式

Empty file

About

设计模式代码库 expand collapse
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
Java
1
https://gitee.com/liu_laughs/design-pattern.git
git@gitee.com:liu_laughs/design-pattern.git
liu_laughs
design-pattern
design-pattern
master

Search