s-day02-泛型通配符的使用(了解)
This commit is contained in:
@@ -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 + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user