Python Programming - Encapsulation - Discussion

Discussion Forum : Encapsulation - General Questions (Q.No. 59)
59.
How can encapsulation help improve code maintenance?
By exposing all internal details of an object
By hiding the implementation details of an object
By making all variables public for easy access
By using global variables extensively
Answer: Option
Explanation:
Encapsulation helps improve code maintenance by hiding the implementation details of an object, making it easier to modify or extend without affecting other parts of the code.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.