3 ms·
>You can’t build a dynamic list of objects implementing the same interface in different ways with parametric polymorphism. Yes you can. that's the whole point
by VirusNewbie 3y ago
>You can’t build a dynamic list of objects implementing the same interface in different ways with parametric polymorphism.
Yes you can. that's the whole point of type classes.
- layer8 3y agoNot without runtime polymorphism. Parametric polymorphism does not imply nor by itself implement runtime polymorphism. I.e. C++ templates, or generics in other languages, provide parametric polymorphism, but not runtime polymorphism.
- gpderetta 3y agoUniversal Vs existential qualification. For example in c++ std::function exhibits parametric polymorphism without templates.
- Kranar 3y agoType classes are not parametric polymorphism.