Difference between Covariance & Contra-variance
- by jane doe
I am having trouble understanding the difference between covariance and contravariance.
My understanding is one supports out, as in "action" with no return type, which is casting to. The other takes in an argument and is casting from, is this correct?