s-day02-泛型通配符的使用(了解)

This commit is contained in:
2026-07-31 11:45:48 +08:00
parent 6bdf2742a2
commit 7e9ae0104d
3 changed files with 74 additions and 0 deletions
@@ -0,0 +1,19 @@
package com.inmind.generic_tpf08;
public class Student extends Person{
public Student() {
}
public Student(String name, int age) {
super(name, age);
}
@Override
public String toString() {
return "Student{" +
"age=" + age +
", name='" + name + '\'' +
'}';
}
}