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
In questa pagina del sito puoi guardare il video online Polymorphism in Python della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Coders Bring Change (Python for Everyone) 18 novembre 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 6,263 volte e gli è piaciuto 151 spettatori. Buona visione!