NSBlog
"A failure in the hot air department"
Showing entries tagged "theory". Full blog index.
Friday Q&A 2015-11-20: Covariance and Contravariance
at 2015-11-20 14:16
Subtypes and supertypes are a common part of modern programming. Covariance and contravariance tell us where subtypes are accepted and where supertypes are accepted in place of the original type. This shows up frequently in most of the programming most of us do, but many developers are unaware of the concepts beyond a loose instinctual sense. Today I'm going to discuss it in detail.