说明
1、通配符? super Frui限定了泛型下界为 Fruit。
2、Generic
实例
GenericfruitGeneric2 = new Generic<>(); print2(fruitGeneric2); Generic foodGeneric2 = new Generic<>(); print2(foodGeneric2); // 错误使用 // Generic appleGeneric2 = new Generic<>(); // print2(appleGeneric2);