The best way to use getters and setters

Asked

Viewed 93 times

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?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.