How can you enforce encapsulation in Python?
By declaring all attributes as private
By using access modifiers like public, protected, and private
By using only getter methods for attribute access
By avoiding the use of encapsulation in code
This question is part of this quiz :
Python Encapsulation Quiz