Python Programming - Encapsulation - Discussion

Discussion Forum : Encapsulation - General Questions (Q.No. 26)
26.
In Python, what does the double underscore prefix in a variable, like __variable, indicate?
A protected variable
A private variable
A global variable
A constant variable
Answer: Option
Explanation:
The double underscore prefix in Python, as in __variable, indicates a private variable.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.