0
I started to study programming a short time ago and the chosen language was Python. And I’m finding it very difficult to enter the use of getters
, setters
and properties.
In my internet browsing, I found that the use of property
is more recommended than the use of getters
and setters
in Python, but I also didn’t understand its concepts.
Could someone help me understand the reason for using these methods and the best way to use them?
Possible duplicate of Pythonic way of defining setters and getters
– Miguel
You already have an excellent answer here too: https://stackoverflow.com/questions/2627002/whats-the-pythonic-way-to-use-getters-and-setters
– Max Fratane