Computer Science, asked by 1PrincessMannat, 1 year ago

what is data encapsulation?

Answers

Answered by dfgh4
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 cyrusbishop
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