Python Programming - Inheritance - Discussion
Discussion Forum : Inheritance - General Questions (Q.No. 29)
29.
How does Python handle name mangling for attributes in a class?
Answer: Option
Explanation:
Attributes with a double leading underscore in Python undergo name mangling, which involves adding a prefix based on the class name to avoid naming conflicts.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers