Advertisements
Advertisements
Question
Explain the following concept related to the object oriented programming:
Data Encapsulation
Explain
Advertisements
Solution
Encapsulation is the process of grouping data and functions into a single unit. It is also called data hiding, as it hides the internal details of a class from the user. The user is allowed to access only a limited set of operations on the hidden data through special functions known as methods. Encapsulation helps in hiding both data members and member functions.
shaalaa.com
Is there an error in this question or solution?
2024-2025 (March) Official
