Define Encapsulation and explain.
Answers
Answered by
1
Encapsulation is one of the fundamental concepts in object-oriented programming (OOP). It describes the idea of bundling data and methods that work on that data within one unit, e.g., a class in Java. This concept is also often used to hide the internal representation, or state, of an object from the outside.
Hope it will help you
Answered by
0
Encapsulation isdefined as the wrapping up of data under a single unit. Technically in encapsulation, the variables or data of a class is hidden from any other class and can be accessed only through any member function of own class in which they are declared.
HOPE IT HELPS YOU !!
Similar questions
Math,
6 months ago
Economy,
6 months ago
Physics,
6 months ago
Computer Science,
11 months ago
India Languages,
11 months ago
Chemistry,
1 year ago
Science,
1 year ago