Python Programming - Encapsulation - Discussion

Discussion Forum : Encapsulation - General Questions (Q.No. 17)
17.
Which of the following statements about encapsulation in Python is true?
Encapsulation allows unrestricted access to the internal details of an object.
Encapsulation involves exposing all implementation details of an object.
Encapsulation is achieved through the use of global variables.
Encapsulation contributes to data security by hiding implementation details.
Answer: Option
Explanation:
Encapsulation contributes to data security by hiding the implementation details of an object, preventing direct access and manipulation.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.