Computer Science, asked by krithif52, 1 year ago

what is encapsulation ?( give a simple explanation )

Answers

Answered by S4MAEL
7
encapsulation is used to refer to one of two related but distinct notions, and sometimes to the combination thereof: A language mechanism for restricting direct access to some of the object's components.

hope it helps!!✌✌

S4MAEL: no sis it is right
S4MAEL: okay now see i edit it
S4MAEL: Encapsulation is defined as wrapping up of data and information under a single unit.
ayushi114: ya this is correct
S4MAEL: okay
S4MAEL: thnx sis
ayushi114: my pleasure
krithif52: yes of course ur comments helped me a lot!
Rosy82: it helped today
krithif52: what?
Answered by cyrusbishop
0

Answer:

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

Explanation:

The only way to access the data is provided by the functions that are combined along with the data. These functions are called methods or member functions in an object oriented language which gives stress on the data items rather than functions.

Similar questions