Python Professional — Hard
Key points
- Name mangling changes double underscore attributes to _ClassName__attribute
- Mangled attributes are not directly accessible outside the class
- Accessing __secret outside Secure class raises an AttributeError
Ready to go further?
Related questions
