s-day02-泛型通配符的上下限(受限泛型)(了解)

This commit is contained in:
2026-07-31 11:59:06 +08:00
parent 7e9ae0104d
commit f6a709ff6c
3 changed files with 38 additions and 2 deletions
@@ -16,4 +16,14 @@ public class Student extends Person{
", name='" + name + '\'' +
'}';
}
@Override
public void show() {
System.out.println("学生重写show");
}
@Override
public void method() {
System.out.println("学生重写method");
}
}