You want to understand Polymorphism and know how to use it in your code but you hear things like interfaces, types and things that can take many forms. But this only makes you think about ancient greek myths. I have good news for you. You are already using polymorphism in Python without realizing and in this video you learn what it is, what the world would look like without it and how you can use it in your custom classes.
C H A P T E R S
0:00 Polymorphism in the Python print function
1:10 Switch needed without Polymorphism
1:22 Violation of the open-closed principle
2:00 Dunder string (__str__) in Python built-in types
3:05 Make custom classes printable by overriding _str_
4:20 Polymorphism prevents switching on types
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 online courses: https://pythonforeveryone.com
#polymorphism #programming #python
On this page of the site you can watch the video online Perfect Python Polymorphism. You are already using it! with a duration of hours minute second in good quality, which was uploaded by the user Coders Bring Change (Python for Everyone) 26 March 2023, share the link with friends and acquaintances, this video has already been watched 709 times on youtube and it was liked by 32 viewers. Enjoy your viewing!