What is data encapsulation?

Asked 7 years ago
Viewed 693 times

1

What is data encapsulation?


1 Answer


0

"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.

answered 6 years ago by Arti Mishra
  1. Thank You for answering. - Anonymous User 6 years ago

Your Answer