What Is Covariance and Contravariance in Programming?

Share
  • March 2, 2021
Covariance and contravariance are terms which describe how a programming language handles subtypes. The variance of a type determines whether its subtypes can be used interchangeably with it.

Read This Article on CloudSavvy IT ›

Source : What Is Covariance and Contravariance in Programming?