mirror of
https://github.com/LingCoder/OnJava8.git
synced 2026-09-04 05:42:48 +08:00
Merge pull request #193 from YngwieWang/patch-5
[hotfix] Correct a sentence
This commit is contained in:
@@ -760,7 +760,7 @@ Woodwind.play() MIDDLE_C
|
|||||||
|
|
||||||
## 抽象类和接口
|
## 抽象类和接口
|
||||||
|
|
||||||
尤其是在 Java 8 引入 **default** 方法之后,区分何时抽象类还是接口是最好的选择变得更加令人困惑。下表做了明确的区分:
|
尤其是在 Java 8 引入 **default** 方法之后,选择用抽象类还是用接口变得更加令人困惑。下表做了明确的区分:
|
||||||
|
|
||||||
| 特性 | 接口 | 抽象类 |
|
| 特性 | 接口 | 抽象类 |
|
||||||
| :------------------: | :--------------------------------------------------------: | :--------------------------------------: |
|
| :------------------: | :--------------------------------------------------------: | :--------------------------------------: |
|
||||||
|
|||||||
Reference in New Issue
Block a user