The Ultimate Course of Python OOP, in the second part, we will understand why you should create constructors, how _init_ is beneficial, and also how to use validation for your parameters with typing and assert.
#PythonOOP #Python #Pythonself
☕ Buy me a coffee: https://www.buymeacoffee.com/jimsc
Connect with me with:
Instagram: / jimshapedcoding
E-mail: jimshapedcoding@gmail.com
Twitter : / jimshapedcoding
Discord : / discord
🔥 Comment below if you want to see more videos in that style
👍 Subscribe to start your Python Developer / DevOps Engineer journey here:
/ @jimshapedcoding
My Personal website:
http://jimshapedcoding.com
Links:
Github Repo to the code:
https://github.com/jimdevops19/PythonOOP
Timeline of the video:
00:00 - 04:11 - What problem the constructor solves?
04:12 - 09:21 - Attribute assignment through _init_
09:21 - 13:11 - More important tips how to use _init_
13:12 - 15:50 - Validations: Using Typing
15:51 - 20:18 - Validations: Using Assert statement
Sur cette page du site, vous pouvez voir la vidéo en ligne Python Object Oriented Programming - Constructor, __init__ [FULL COURSE 2021] durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur JimShapedCoding 30 août 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 4,798 fois et il a aimé 257 téléspectateurs. Bon visionnage!