Perfect Python Polymorphism. You are already using it!

Publié le: 26 mars 2023
sur la chaîne: Coders Bring Change (Python for Everyone)
709
32

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


Sur cette page du site, vous pouvez voir la vidéo en ligne Perfect Python Polymorphism. You are already using it! durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Coders Bring Change (Python for Everyone) 26 mars 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 709 fois et il a aimé 32 téléspectateurs. Bon visionnage!