• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in JAVA by
Q:
What do you mean by data encapsulation?

1 Answer

0 votes
by

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
asked Aug 22, 2020 in Cyber Security by sharadyadav1986
0 votes
asked Feb 8, 2021 in JAVA by SakshiSharma
...