Contravariance
"Contravariance" in a Sentence (1 examples)
I get why with covariance I can return a Dog (a Dog is a Mammal), but why does contravariance work the other way? Shouldn't it accept a derived type when it expects a base type? Contravariance is consistent with Postel's Law: […]
More for "contravariance"
Next best steps
Data sourced from Wiktionary, WordNet, CMU, and other open linguistic databases. Updated March 2026.