Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite0
English, Please? (OOP Properties)
Hopefully, this isn't stupid of me to ask, but would somebody be able to give me the following in layman's terms? "Properties provide a way of customizing access to instance attributes. They are created by putting the property decorator above a method, which means when the instance attribute with the same name as the method is accessed, the method will be called instead." Thanks.
1 Réponse
0
This may provide additional explanation
https://realpython.com/primer-on-JUMP_LINK__&&__python__&&__JUMP_LINK-decorators/