Computer Science, asked by anshukla2873, 1 year ago

What is Encapsulation? Why do we do it?

Answers

Answered by smartgirl23
1
Encapsulation is the wrapping together of data and function. I know this only.

abhisharma50: first u said me
smartgirl23: St . Mary's school
abhisharma50: oww nice
smartgirl23: thanks.. nd urs
abhisharma50: MGPS SCHOOL
smartgirl23: full form
abhisharma50: morning Glory public school
smartgirl23: ohh gud
smartgirl23: kk bye
abhisharma50: byyy
Answered by cyrusbishop
3

Answer:

The system of wrapping data and functions into a single unit is known as encapsulation.

Data encapsulation is the most important feature of a class. The functions used in a class can only access the data items. These functions provide an interface between data items of the objects and the calling program. This is the reason of using encapsulation.

Similar questions