describe encapsulation with two real life example
Answers
Answered by
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
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