Computer Science, asked by Fasvin6339, 11 months ago

Define Encapsulation and explain.

Answers

Answered by Anonymous
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 Anonymous
0
\huge\red{Answer}

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