what is data encapsulation?
Answers
Answered by
2
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
2
Answer:
The system of wrapping data and functions into a single unit is known as encapsulation of data.
Explanation:
The insulation of data, which cannot be accessed directly outside class premises, although they are available in the same program, is known as Data Hiding.
These functions provide interface between data items of the objects and the calling program.
Similar questions
India Languages,
7 months ago
Math,
7 months ago
Social Sciences,
1 year ago
Math,
1 year ago
Social Sciences,
1 year ago