Python OOP lesson in which we will consider getter and setter methods, encapsulation, property decorator, as well as classmethod and staticmethod decorators.
And of course in the context, why is all this needed.
00:00 Introduction, encapsulation in python
03:20 attribute _slots_
04:20 python getters setters
08:03 decorator property and setter
12:38 classmethod decorator
18:09 staticmethod decorator
Link to the code from the tutorial:
gist.github.com/PythonHubStud...
-------------------------------------------------- -------------------------------------------------- ----------------------------------------------
Become a channel sponsor and you will get access to exclusive bonuses.
More:
/ @pythonhubstudio
-------------------------------------------------- -------------------------------------------------- ----------------------------------------------
OOP course with the practice of writing a program:
• Полный курс уроков обу...
Telegram bot development course using an example project:
• Playlist
Subscribe to the channel! Ask questions in the comments!
#PythonHubStudio
#python
Негізгі бет Python OOP getters setters, decorator property, classmethod, staticmethod
Пікірлер: 127