Python Programming - Inheritance - Discussion
Discussion Forum : Inheritance - General Questions (Q.No. 6)
6.
How does Python support encapsulation in the context of inheritance?
Answer: Option
Explanation:
Python supports encapsulation by allowing the use of private attributes and methods, denoted by a double underscore (e.g.,
__private_attribute
), which are only accessible within the class.
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