Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: typo #281

Merged
merged 1 commit into from
Nov 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 172.精读《设计模式 - Adapter 适配器模式》.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class Adapter implements ITarget {

## 总结

适配器模式也复合开闭原则,在不对原有对象改造的前提下,构造一个适配器就能完成模块衔接。
适配器模式也符合开闭原则,在不对原有对象改造的前提下,构造一个适配器就能完成模块衔接。

适配器模式的实现分为类与对象模式,类模式用继承,对象模式用组合,分别适用于 `Adaptee` 与 `Target` 结构相似与结构差异较大的场景,在任何情况下,组合模式都是灵活性最高的。

Expand Down