Skip to content

Commit 229af16

Browse files
committed
修改
1 parent 7207b12 commit 229af16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adapter/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ public class BusAdapter implements Car {
7676
>* 需要使用几个现有的子类,但是通过子类化每个子类来调整它们的接口是不切实际的。
7777
对象适配器可以调整其父类的接口。
7878

79-
## 区别
80-
> 类适配器和对象适配器的区别:
79+
## 类适配器和对象适配器的区别
80+
8181
>* 类适配器的适配功能是通过被适配类(接口)的一个对象间接完成的。因此,类适配器不能无法
8282
对被适配类的所有子类进行适配
8383
>* 类适配器重写了被适配类(接口)的方法,所以,类适配器可以看做被适配类(接口)的一个子类

0 commit comments

Comments
 (0)