Advantages of Encapsulation

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

Comments

HTML/JAVASCRIPT

Popular posts from this blog

Teradata SQL Assistant Shortcuts

How to List All Tables in Oracle, MySql, Teradata, DB2 and PostgreSQL

7473 Requested sample is larger than table rows. All rows returned