Abstract classes, Interfaces, and Patterns
- slide 4 : 37
Covariance and Contravariance
Covariance:
The parameters
S
and
T
vary the same way as
A
and
B
Contravariance
: The parameters
S
and
T
vary the opposite way as
A
and
B
Parameter variance