Python Programming - Encapsulation - Discussion

Discussion Forum : Encapsulation - General Questions (Q.No. 46)
46.
What does the term "encapsulation" mean in the context of object-oriented programming?
Combining multiple classes into one
Hiding the implementation details of an object and bundling data and methods into a single unit
Inheriting attributes from multiple classes
Exposing all internal details of an object
Answer: Option
Explanation:
Encapsulation in Python involves hiding the implementation details of an object and bundling data and methods into a single unit for better control.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.