Difference between Covariance & Contra-variance
Posted
by jane doe
on Stack Overflow
See other posts from Stack Overflow
or by jane doe
Published on 2010-02-02T14:07:33Z
Indexed on
2010/03/31
21:43 UTC
Read the original article
Hit count: 261
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?
© Stack Overflow or respective owner