Python | OOPs quiz | Question 19

Last Updated :
Discuss
Comments

How can you implement encapsulation in Python?

By using private variables and methods

By defining multiple methods with the same name in a class

By creating a new instance of a class

By using the @property decorator

Share your thoughts in the comments