+ 1

Access specifiers

Hi guys, i just wanna know, do we have Access specifiers in Python? If not why?

7th Dec 2019, 12:04 AM
Masingita Abel
Masingita Abel - avatar
1 ответ
+ 1
you can declare private members using a double underscore...although you can still get round it by doing .. object._className__varName. object._className__methodName(). I'm sure that's in the tutorial.
7th Dec 2019, 12:29 AM
rodwynnejones
rodwynnejones - avatar