Skip to content

Commit 222f93f

Browse files
committed
auto commit
1 parent e630613 commit 222f93f

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

docs/notes/Java 基础.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,6 +1322,25 @@ public static void main(String[] args) {
13221322

13231323
应该注意的是,返回值不同,其它都相同不算是重载。
13241324

1325+
```
1326+
class OverloadingExample {
1327+
public void show(int x) {
1328+
System.out.println(x);
1329+
}
1330+
1331+
public void show(int x, String y) {
1332+
System.out.println(x + " " + y);
1333+
}
1334+
}
1335+
```
1336+
1337+
```
1338+
public static void main(String[] args) {
1339+
OverloadingExample example = new OverloadingExample();
1340+
example.show(1);
1341+
example.show(1, "2");
1342+
}
1343+
```
13251344

13261345
# 七、反射
13271346

notes/Java 基础.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,6 +1322,25 @@ public static void main(String[] args) {
13221322

13231323
应该注意的是,返回值不同,其它都相同不算是重载。
13241324

1325+
```
1326+
class OverloadingExample {
1327+
public void show(int x) {
1328+
System.out.println(x);
1329+
}
1330+
1331+
public void show(int x, String y) {
1332+
System.out.println(x + " " + y);
1333+
}
1334+
}
1335+
```
1336+
1337+
```
1338+
public static void main(String[] args) {
1339+
OverloadingExample example = new OverloadingExample();
1340+
example.show(1);
1341+
example.show(1, "2");
1342+
}
1343+
```
13251344

13261345
# 七、反射
13271346

notes/剑指 Offer 题解 - 目录.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
- [9. 用两个栈实现队列](9.%20用两个栈实现队列.md)
5050
- [30. 包含 min 函数的栈](30.%20包含%20min%20函数的栈.md)
5151
- [31. 栈的压入、弹出序列](31.%20栈的压入、弹出序列.md)
52+
5253
- [40. 最小的 K 个数](40.%20最小的%20K%20个数.md)
5354
- [41.1 数据流中的中位数](41.1%20数据流中的中位数.md)
5455
- [41.2 字符流中第一个不重复的字符](41.2%20字符流中第一个不重复的字符.md)

0 commit comments

Comments
 (0)