12) Explain about Data Encapsulation
Answers
Answered by
0
Answer:
Data encapsulation, also known as data hiding, is the mechanism whereby the implementation details of a class are kept hidden from the user. The user can only perform a restricted set of operations on the hidden members of the class by executing special functions commonly called methods.
Answered by
0
Data Encapsulation is an Object Oriented Programming concept that bind a group of related properties, functions, and other members are treated as a single unit. Class is the best example of Data Encapsulation. It sometimes referred to as data hiding that prevents the user to access the implementation details. Encapsulation therefore guarantees the integrity of the data contained in the Object.
Similar questions
Math,
4 months ago
English,
4 months ago
Social Sciences,
4 months ago
English,
7 months ago
Biology,
1 year ago
Business Studies,
1 year ago