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
На этой странице сайта вы можете посмотреть видео онлайн Polymorphism in Python длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Coders Bring Change (Python for Everyone) 18 Ноябрь 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 6,263 раз и оно понравилось 151 зрителям. Приятного просмотра!