Click here to Skip to main content
15,662,737 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello everyone , please can we talk in python about a class property and an instance property like attributs and methods ??? because according to what i see we declare it like that :

age = property(_getage)

like we do with a class method .

What I have tried:

searching on the net and asking about the topic
Updated 20-Aug-21 22:44pm

1 solution

Did you try the official documentation? See Built-in Functions (property) — Python 3.9.6 documentation[^]
Share this answer
Mohamed AIT HADDOU 22-Aug-21 2:51am    
Thank you , so as i see we have only a class property ,we can not use an instance property because the property is used for the class in general is that correct please ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900