what are the the benefits of encapsulation in Java
Answers
Answered by
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