1. Question: What is Encapsulation?
Encapsulation is the technique of making the fields in a class private and providing access to the fields via public methods. If a field is declared private, it cannot be accessed by anyone outside the class, thereby hiding the fields within the class. For this reason, encapsulation is also referred to as data hiding.

Explanation: Not available

1. Forum
2. Question: what are the benefits of encapsulation?
1. Encapsulated Code is more flexible and easy to change with new requirements.
6. Encapsulation allows you to change one part of code without affecting other part of code.
Explanation: Not available