Python Programming - Encapsulation - Discussion

Discussion Forum : Encapsulation - General Questions (Q.No. 15)
15.
How does encapsulation contribute to the concept of information hiding in object-oriented programming?
By exposing all implementation details of an object
By combining data and methods into a single unit
By hiding the implementation details of an object and exposing only the necessary functionalities
By allowing unrestricted access to internal details of an object
Answer: Option
Explanation:
Encapsulation contributes to information hiding by hiding the implementation details of an object and exposing only the necessary functionalities, promoting abstraction.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.