继承泛型类和泛型接口学习
2021-11-26 本文已影响0人
哈迪斯Java
image.png
image.png
package All.D13.Generic_;
public class Demon03 {
public static void main(String[] args) {
}
}
class Father<T>{
T t;
public Father(T t){
this.t=t;
}
}
interface TestInterface<E>{
}
class Child<T,E>extends Father<T>implements TestInterface<E>{
public Child(T t) {
super(t);
}
}