Python | Encapsulation Quiz | Question 7

Last Updated :
Discuss
Comments

What is the purpose of using getters and setters in Python?

To perform mathematical operations on attributes

To restrict access to attributes

To provide access and modify private attributes

To create public attributes

Share your thoughts in the comments