File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 12
12
13
13
上一章:[ 第二章 商场促销 --- 策略模式] ( https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter2.md )
14
14
15
- 下一章:[ 第四章 考研求职两不误 --- 开发 -封闭原则] ( https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter4.md )
15
+ 下一章:[ 第四章 考研求职两不误 --- 开放 -封闭原则] ( https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter4.md )
Original file line number Diff line number Diff line change 1
- ### 第四章 研求职两不误 --- 开发 -封闭原则
1
+ ### 第四章 研求职两不误 --- 开放 -封闭原则
2
2
3
3
总结
4
- > *** 开发 -封闭原则*** , 是说软件实体应该可以扩展,但是不可以修改。
4
+ > *** 开放 -封闭原则*** , 是说软件实体应该可以扩展,但是不可以修改。
5
5
6
6
> 怎样的设计才能面对需求的改变却可以保持相对稳定,从而使得系统可以在第一个版本以后不断推出新的版本呢?
7
7
Original file line number Diff line number Diff line change 11
11
12
12
> 依赖倒转其实可以说是面向对象设计的标志,用哪种语言来编写程序不重要,如果编写时考虑的都是如何针对抽象编程而不是针对细节编程,即程序中所有的依赖关系都是终止于抽象类或者接口,那就是面向对象的设计,反之那就是过程化的设计了。
13
13
14
- 上一章:[ 第四章 研求职两不误 --- 开发 -封闭原则] ( https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter4.md )
14
+ 上一章:[ 第四章 研求职两不误 --- 开放 -封闭原则] ( https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter4.md )
15
15
16
16
下一章:[ 第六章 穿什么有这么重要吗 --- 装饰模式] ( https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter6.md )
Original file line number Diff line number Diff line change 14
14
15
15
- [ 第三章 拍摄UFO --- 单一职责原则] ( https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter3.md )
16
16
17
- - [ 第四章 研求职两不误 --- 开发 -封闭原则] ( https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter4.md )
17
+ - [ 第四章 研求职两不误 --- 开放 -封闭原则] ( https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter4.md )
18
18
19
19
- [ 第五章 会修电脑不会修收音机? --- 依赖倒转原则] ( https://github.com/flyingalex/design-patterns-by-php/blob/master/files/chapter5.md )
20
20
You can’t perform that action at this time.
0 commit comments