What is data encapsulation?

1 votes
142 views
Sunita  Singh asked 14-Nov-2017 in programming by Sunita Singh

What is data encapsulation?

1 Answer

0 votes
Arti Mishra answered 22-Aug-2018 by Arti Mishra

"Data Encapsulation"

What is data encapsulation?

Encapsulation means to hide the internal details and provide a medium to access it. It is a fundamental concept of object-oriented programming language (OOP’s). It is used to describe the binding of data and method in a single unit.

In other word’s you can also say this, it is a mechanism of hiding the data and a member function of the class and only shows the functionality to the user. The real-life example of encapsulation is “using phone call”, you don’t know the internal working of phone call and how to work internal process.

UTKARSHASINGHROUL commented 07-Mar-2019 by UTKARSHASINGHROUL
Thank You for answering.
       0