Skip to content

Commit

Permalink
fix: 修复图片查看失败问题
Browse files Browse the repository at this point in the history
  • Loading branch information
王艺 committed Jul 1, 2024
1 parent ccd4418 commit b6c52d4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/zh/design-patterns/structural-patterns/adapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ tag:

## 类适配器

<div style="display: flex; flex-direction: row; justify-content: center; zoom: 100%; float: right">
<div>![](https://refactoringguru.cn/images/patterns/diagrams/adapter/structure-class-adapter.png?id=e1c60240508146ed3b98ac562cc8e510)</div>
</div>
![](https://refactoringguru.cn/images/patterns/diagrams/adapter/structure-class-adapter.png?id=e1c60240508146ed3b98ac562cc8e510)

这一实现使用了继承机制: 适配器同时继承两个对象的接口。 请注意, 这种方式仅能在支持多重继承的编程语言中实现, 例如 C++。

Expand Down

0 comments on commit b6c52d4

Please sign in to comment.