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

1 Answer

0 votes

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 Apr 30, 2021 in JAVA by rajeshsharma
0 votes
asked Oct 27, 2020 in JAVA by sharadyadav1986
0 votes
asked May 24, 2019 in JAVA by rajeshsharma