Update Java 基础.md
添加重写与重载示例代码的解析。
This commit is contained in:
parent
5589e94a4d
commit
53b5e094f9
|
@ -720,6 +720,7 @@ class B extends A {
|
|||
return ("B and B");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String show(A obj) {
|
||||
return ("B and A");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user