Access Modifiers
Learn about the private, public, and protected data members in Python.
In Python, we can impose access restrictions on different data members and member functions. The restrictions are specified through access modifiers. Access modifiers are tags we can associate with each member to define which parts of the program can access it directly.
There are two types of access modifiers in Python. Let’s take a look at them one by one.
Get hands-on with 1400+ tech skills courses.