Q. How can a private attribute be accessed outside a class?
Solution:
Name mangling (_Class__attr) allows access to private attributes, e.g., _Class__value.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
Name mangling (_Class__attr) allows access to private attributes, e.g., _Class__value.
Strengthen Your Practice with our comprehensive question bank.