泛型的准则

父类为泛型类

那么子类继承父类的话

要么同时擦除泛型,要么子类大于父类的类型

不能子类擦除,而父类泛型

猜你喜欢

转载自blog.csdn.net/qq_38384440/article/details/81386311
今日推荐