Encapsulation is the techinque of making fields in a class private and
providing access to the fields via public methods.
Benefits:
1. Read/Write access control.
2. Able to change the data processing of a field without changing user's
code.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.