Java -Inverse covariance

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

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

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

posted @ 2015-12-15 19:30  johnson-ycp  阅读(157)  评论(0编辑  收藏  举报