Become a member
Sign in
Lino Rosa
Lino Rosa

Lino Rosa

Editor of Lino Rosa
76 Following
19 Followers
·
  • Profile
  • Claps
  • Responses

Latest

Lino Rosa
Lino Rosa in Lino Rosa
Aug 18, 2016 · 4 min read

Covariance and Contravariance

The notion of variance comes into play when we consider classes with type parameters, i.e. generics.

For classes T and T’ where T’ is a subclass of T what’s the relationship between A[T] and A[T’]?