Computer Science, asked by varyadass7, 1 month ago

describe encapsulation with two real life example​

Answers

Answered by Simi011
0

Answer:

Another example of encapsulation is a capsule. Basically, capsule encapsulates several combinations of medicine. If combinations of medicine are variables and methods then the capsule will act as a class and the whole process is called Encapsulation as shown in the below figure.

Explanation:

Hope that helps you

Answered by Anonymous
1

Answer :

  • Encapsulation is an Object Oriented Programming concept that binds together the data and functions that manipulate the data, and that keeps both safe from outside interference and misuse.

  • The best example of encapsulation could be a calculator.

@ItzAngelHearts

Similar questions