Options:
- Data and the code that acts on that data are treated as separate entities
- Making a variable private restricts access to it
- Methods can be set up to limit the ways in which data may be modified
- Data can be accessed through exposed methods only
- Encapsulation protects data in the object’s variables from unauthorized access
-
Encapsulation encourages tight coupling
1 Answers