Re:Covariance and Contravariance: a fresh look at an old iss...
by continuational on Wednesday May 18, 2016 @02:40AM
(#11720200)
You can't have co/contravariance without subtyping. Remove the extends and the implements keyword from Java, and you're rid of it. You can still create instances of Fruit using annonymous classes.
[ Parent
| on HN ]
There are no comments on this comment yet.