We will be discussing about Python's properties class, it's purpose and usage as decorator.
This is the 6th video of tutorial series on Object oriented programming in Python: [ Ссылка ]
0:00 Introduction
0:56 Advantages of having getters and setters
2:18 Using property object
4:18 Attribute lookup order with property objects
4:56 property class signature
5:23 deleter and docstring
6:17 getter, setter and deleter methods
8:36 property decorator
10:05 Read-only attribute
11:13 An example of lazy computation
Credits: The contents of this video are mostly from my notes on Dr. Fred Baptiste's course [ Ссылка ]
Ещё видео!