Constructors in Python - Intro tutorial to the __init__ magic method for initializing new objects

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

By far is the best explanation of init method

tatsamui
Автор

Fantastic video! Definitely subscribed. I've been so confused and was watching so many videos. This one made it click for me. Thankyou!

WickyBoi
Автор

This is such a fantastic tutorial, I feel so lucky that I stumbled across this channel lol, Thank you for this Kris 🙂

Mustafa-
Автор

Thank you Kris. This Video helped me so much to get a grip on this whole concept of construct and deconstruct. Also the way of drawing over the screen and seeing your face talk to me and not just a screen was pretty good. :)

Error_
Автор

Such a masterpiece class.
Thank you, sir.

cristigheorghiu
Автор

Thanks very much for that. I've been struggling to understand it for quite a while now, but that was a well explained and understandably articulated explanation.

bennyw
Автор

Strictly speaking the __new__ dunder method is the constructor and __init__ is an initialiser. Most people, including myself tend to gloss over the details and think of __init__ as the constructor.

gedtoon
Автор

How do I set magic in the constructor __int__ not passed as a parameter

adammohammed
Автор

dose anyone knows why cant we just say x = float instead of x : float

tariqelamin
welcome to shbcf.ru