public void open(Box<? super BirthGift> box) {}参数中Box的泛型是什么类型?
A.任意类型
B.可以是BirthGift的子类型
C.可以是BirthGift的父类型
D.只能是BirthGift类型
正确答案是C
public void open(Box<? super BirthGift> box) {}参数中Box的泛型是什么类型?
A.任意类型
B.可以是BirthGift的子类型
C.可以是BirthGift的父类型
D.只能是BirthGift类型
正确答案是C