Programming > JavaScript

What do you mean by data encapsulation?

(1/1)

officalchinmay:
Data encapsulation is a concept of binding data and code in single unit called object and hiding all the implementation details of a class from the user. It prevents unauthorized access of data and restricts the user to use the necessary data only.

JustinC:
Data Encapsulation is an Object Oriented Programming concept that bind a group of related properties, functions, and other members are treated as a single unit.
Class is the best example of Data Encapsulation.
It sometimes referred to as data hiding that prevents the user to access the implementation details.

Navigation

[0] Message Index

Go to full version