Properties, Access modifiers
- Languages like C++, C#, Java etc have access modifiers
- public
- private
- protected
- internal
- Python doesnot support access modifiers, everything is public
- But python supports some syntaxes which can create something equivalent to private
- Prompt
Role: You are expert in python
I'm learning python
Give me python access modifier equivalents in a tabular form
- Properties
- Properties are get or set functions which set the value of attributes
- Python support properties with decorator Refer Here