mirror of
https://gitee.com/gaohongy/Java-Book.git
synced 2026-07-16 09:43:50 +00:00
整理重点
This commit is contained in:
+3
-3
@@ -2,7 +2,7 @@
|
||||
|
||||
> Suppose you will define classes to model circles, rectangles, and triangles. These classes have many common features. What is the best way to design these classes so to avoid redundancy? The answer is to use inheritance.
|
||||
|
||||
### 1.1. 如何降低描述荣誉
|
||||
### 1.1. 如何降低描述冗余
|
||||
|
||||
如何降低代码的冗余?例如在C语言中,通过什么方式降低代码的冗余。
|
||||
|
||||
@@ -367,8 +367,6 @@ main函数开起来比较奇怪,为什么在Faculty内中,又使用new 方
|
||||
activate Faculty()
|
||||
Note over Faculty():4
|
||||
deactivate Faculty()
|
||||
|
||||
|
||||
|
||||
```
|
||||
|
||||
@@ -973,4 +971,6 @@ ArrayList<String> cityList = new ArrayList();
|
||||
> 修饰符用于类和类成员(数据和方法),但final修饰符也可以用于方法中的局部变量。final用于一个局部变量,这个变量就是方法内部的常量。
|
||||
|
||||
|
||||
## 9. 本章重点
|
||||
|
||||
除了特别标注,都需要掌握。
|
||||
|
||||
Reference in New Issue
Block a user