Python Programming - Encapsulation - Discussion

Discussion Forum : Encapsulation - General Questions (Q.No. 28)
28.
Which of the following is true about encapsulation?
It involves exposing all implementation details of an object.
It is achieved through the use of global variables.
It allows for unrestricted access to internal details of an object.
It combines data and methods into a single unit and hides implementation details.
Answer: Option
Explanation:
Encapsulation in Python combines data and methods into a single unit and hides implementation details.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.