Home > Mobile >  Are there access specifiers in python???How are they implemented?
Are there access specifiers in python???How are they implemented?

Time:12-08

Are there access specifiers in python? I want to know about the access specifiers in python. How are they implemented??.What is the basic structure??

CodePudding user response:

Yeah, python has access modifiers. Here's a link that might help you.

CodePudding user response:

In Python, there are three main types of access specifiers (also known as access modifiers) which are used to restrict access to members and methods in a class:

Public – Members and methods declared as public can be accessed from outside the class. Protected – Members and methods declared as protected can be accessed only from within the class or from a derived class. Private – Members and methods declared as private can only be accessed from within the class.

  • Related