Python Programming - Encapsulation - Discussion

Discussion Forum : Encapsulation - General Questions (Q.No. 1)
1.
In Python, what is encapsulation?
The process of hiding the implementation details of an object and exposing only the necessary functionalities
The process of combining data and methods into a single unit
The process of creating multiple instances of a class
The process of inheriting attributes and behaviors from another class
Answer: Option
Explanation:
Encapsulation in Python involves bundling the data and methods of a class and controlling access to the internal details, exposing only the necessary functionalities.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.