Java -Inverse covariance

从泛型类取数据时,用extends;

往泛型类写数据时,用super;

既要取又要写,就不用通配符(即extends与super都不用)。

原文地址:https://www.cnblogs.com/fight-tao/p/5049235.html