auto commit

This commit is contained in:
CyC2018
2020-11-04 00:34:13 +08:00
parent e630613380
commit 222f93fafc
3 changed files with 39 additions and 0 deletions

View File

@ -1322,6 +1322,25 @@ public static void main(String[] args) {
应该注意的是返回值不同其它都相同不算是重载
```
class OverloadingExample {
public void show(int x) {
System.out.println(x);
}
public void show(int x, String y) {
System.out.println(x + " " + y);
}
}
```
```
public static void main(String[] args) {
OverloadingExample example = new OverloadingExample();
example.show(1);
example.show(1, "2");
}
```
# 反射