3 ms·
In Sean Parent's 'Inheritance is the base class of evil' talk Sean outlines an interesting way to achieve runtime polymorphism without inheriting interfaces in
by stephen_gareth 9y ago
In Sean Parent's 'Inheritance is the base class of evil' talk Sean outlines an interesting way to achieve runtime polymorphism without inheriting interfaces in C++.
https://www.youtube.com/watch?v=bIhUE5uUFOA https://www.youtube.com/watch?v=bIhUE5uUFOA
- Paul_Dirac 9y agoBut he uses interface inheritance. You see it at 9:44. Where he creates the concept_t and int_model_t inherits from it.
- stephen_gareth 9y agoIndeed. But the original type isn't 'burdened' with the interface. I've used the technique for a simple audio signal processing chain.