What is data encapsulation and what's its significance?

DWQA QuestionsCategory: JavaWhat is data encapsulation and what's its significance?
Editor Staff asked 2 months ago

What is data encapsulation and what’s its significance?

1 Answers
Editor Staff answered 2 months ago

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.