class Animal{}
class Dog extends Animal{}
class Cat extends Animal{}
public class Mixer<A extends Animal>{
public <C extends Cat> Mixer<? super Dog> useMe(A a, C c){
//return new Mixer<Object>();//KO
return new Mixer<Animal>(); //OK
}
}
Mixer<? super Dog>
如果用下界通配符定义,则返回参数如此
为什么当我返回 aMixer<Object>
并且没有编译器错误时会出现编译器错误Mixer<Animal>
?