Python Object Oriented Programming - Constructor, __init__ [FULL COURSE 2021]

Опубликовано: 14 Октябрь 2024
на канале: JimShapedCoding
4,798
257

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: [email protected]
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