+1 vote
in JAVA by
What is data encapsulation and what’s its significance?

1 Answer

0 votes
by

Encapsulation is a concept in Object Oriented Programming for combining properties and methods in a single unit.

Encapsulation helps programmers to follow a modular approach for software development as each object has its own set of methods and variables and serves its functions independent of other objects. Encapsulation also serves data hiding purpose.

Related questions

0 votes
asked Oct 27, 2020 in JAVA by sharadyadav1986
+1 vote
asked Feb 18, 2020 in JAVA by rahuljain1
...