Skip to content

Java设计模式全汇总,设计模式的六大原则,博客介绍和示例代码。

Notifications You must be signed in to change notification settings

wangxp423/ExerciseDesignmodel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 

Repository files navigation

ExerciseDesignmodel

设计模式六大原则:

单一职责原则
开放-封闭原则
里氏替换原则
依赖倒置原则
接口隔离原则
迪米特法则

设计模式(23种)

下面列一下各种设计模式对应代码的包名:
简单工厂模式 --> simplefactory
工厂方法模式 --> methodfactory
抽象工厂模式 --> abstractfactory
策略模式 --> strategy
装饰模式 --> decorate
代理模式 --> proxy
原型模式 --> prototype
模板方法模式 --> templatemethod
外观模式 --> facade
建造者模式 --> builder
观察者模式 --> observer
状态模式 --> state
适配器模式 --> adapter
备忘录模式 --> memento
组合模式 --> composite
迭代器模式 --> iterator
单例模式 --> singleton
桥接模式 --> bridge
命令模式 --> command
职责链模式 --> responsibility
中介者模式 --> mediator
享元模式 --> flyweight
解释器模式 --> interpreter
访问者模式 --> visitor

About

Java设计模式全汇总,设计模式的六大原则,博客介绍和示例代码。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages