fork download
  1. class Modifiers:
  2. def __init__(self, name):
  3. self.__private_member = name
  4.  
  5. m = Modifiers("ololo")
  6. print(m.__private_member)
Runtime error #stdin #stdout #stderr 0.16s 23712KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 6, in <module>
AttributeError: 'Modifiers' object has no attribute '__private_member'