Python Programming - Encapsulation - Discussion

Discussion Forum : Encapsulation - General Questions (Q.No. 27)
27.
What is the primary benefit of using encapsulation in object-oriented programming?
It allows unrestricted access to the internal details of an object.
It promotes code reusability.
It enhances data security by hiding implementation details.
It simplifies the process of class instantiation.
Answer: Option
Explanation:
The primary benefit of using encapsulation is that it enhances data security by hiding the implementation details of an object.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.