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
Auf dieser Seite können Sie das Online-Video Polymorphism in Python mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Coders Bring Change (Python for Everyone) 18 November 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 6,263 Mal angesehen und es wurde von 151 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!