Encapsulation and Data Abstraction In OOP

Encapsulation is a mechanism that associates the code and the data it manipulates and keeps them safe from external interference and misuse. Creating new data types using encapsulated-Items that are well suited to an application to be programmed is known as data abstraction. The data types created by the data abstraction process are known as Abstraction process are known as Abstract Data Types. Data abstraction is a powerful technique, and its proper usage will result optimal, more readable, and flexible programs.

Fig. An Abstract Data type

The use of encapsulation in protecting the members of a class from unauthorized access is a good programming practice; it enforces the separation between the specification and implementation of abstract data types, and it enables the debugging of programs easily.

Comments

  1. Thanks for sharing the blog regarding the Data Abstracting work. Keep sharing more and more blog.Data Abstraction Service

    ReplyDelete

Post a Comment

Popular posts from this blog

Reusability In OOP

Polymorphism ,operator overloading,function overloading,dynamic binding