Jul 27 in JAVA
Q: What do you mean by data encapsulation?

1 Answer

0 votes
Jul 27

Data Encapsulation is an Object-Oriented Programming concept of hiding the data attributes and their behaviors in a single unit.

It helps developers to follow modularity while developing software by ensuring that each object is independent of other objects by having its own methods, attributes, and functionalities.

It is used for the security of the private properties of an object and hence serves the purpose of data hiding.

Related questions

0 votes
Apr 15 in JAVA
0 votes
Oct 27, 2020 in JAVA