Python Programming - Encapsulation - Discussion

Discussion Forum : Encapsulation - General Questions (Q.No. 4)
4.
Which of the following statements about encapsulation in Python is true?
Encapsulation is primarily concerned with combining data and methods into a single unit.
Encapsulation allows unrestricted access to the internal details of an object.
Encapsulation is achieved through the use of global variables.
Encapsulation involves exposing all implementation details of an object.
Answer: Option
Explanation:
Encapsulation in Python involves bundling data and methods into a single unit, promoting modularity and controlled access.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.