Computer Science, asked by rishikasrivastava28, 5 months ago

what are the the benefits of encapsulation in Java​

Answers

Answered by Dipika7041
9

Answer:

Advantage of Encapsulation in Java

The encapsulated code is more flexible and easy to change with new requirements.

It prevents the other classes to access the private fields.

Encapsulation allows modifying implemented code without breaking other code who have implemented the code.

Similar questions