Python Programming - Inheritance - Discussion
Discussion Forum : Inheritance - General Questions (Q.No. 38)
38.
How can you achieve encapsulation in Python without using private attributes?
Answer: Option
Explanation:
Encapsulation in Python can be achieved by using a single leading underscore in attribute names, indicating that they are intended for internal use.
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