Computer Science, asked by Abhikhya45, 2 months ago

how data is hidden and safe if encapsulation is implemented?explain with example ​

Answers

Answered by XxyourdarlingxX
0

\huge\colorbox {aqua}{Answer}

The primary use for encapsulation is to hide implementation details from calling cøde. When calling cøde wants to retrieve a value, it should not depend on from wherethe value comes. Internally, the class can store the value in a field or retrieve it from some external resource (such as a file or a database).

Similar questions