In this video you see how if/else switches violate the open-closed principle and how you can solve the problem with the secret weapon of any Object Oriented Language: Polymorphism.
C H A P T E R S
1:45 The problem with checking on types with if/else
3:25 Implementing polymorphic methods that allows you to remove problematic if/else clauses
3:55 How easy it is to implement new functionality when using polymorphism
M Y O N L I N E T R A I N I N G
🎓Like my style of teaching? Try free chapters of my online courses: https://pythonforeveryone.com
#polymorphism #programming #python
En esta página del sitio puede ver el video en línea Polymorphism in Python de Duración hora minuto segunda en buena calidad , que subió el usuario Coders Bring Change (Python for Everyone) 18 noviembre 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 6,263 veces y le gustó 151 a los espectadores. Disfruta viendo!