Update Java 基础.md

添加重写与重载示例代码的解析。
This commit is contained in:
AnyUncle 2019-04-25 10:25:58 +08:00 committed by GitHub
parent 5589e94a4d
commit 53b5e094f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -720,6 +720,7 @@ class B extends A {
return ("B and B");
}
@Override
public String show(A obj) {
return ("B and A");
}