Python Programming - Encapsulation - Discussion
Discussion Forum : Encapsulation - General Questions (Q.No. 36)
36.
Which keyword in Python is used to define a private variable within a class?
Answer: Option
Explanation:
In Python, there is no explicit keyword for defining private variables. Conventionally, a single or double underscore prefix is used to indicate privacy, but it is a convention and not a strict rule.
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