Advantages of Encapsulation
Advantages of Encapsulation
- If the owner changes the characteristics, it will not affect all the client codes.
- Client cannot access the data directly. So, unambiguous data is avoided.
- Tight encapsulation is a good encapsulation. This means owner provides only getter to the clients.
Comments
Post a Comment