Scott BrickeySep 21
Covariant and Contravariant Types made simple
Edoardo Turelli
121
At a high level, yes, you can TakeCare<Animal>… Maslow’s Needs: provide shelter, food, water, bathroom. Sure, different animals have different shelter or dietary needs… which is why Animal may have subtypes of Mammal and Reptile. But really, at this point the issue is less about Generics, and more about implementing interfaces.