daily life example of encapsulation.
Answers
Answer:
Every java class is examples of encapsulation because we write everything within the class only that binds variable and methods together and hides their complexity from other classes.
Answer:
There can be so many live examples of encapsulation which we see around us such as a car. A car has so many subsystems such as clutch, brake which we didn’t know how they are working internally.
Also, the capsule is a perfect example of encapsulation which comprises of sometimes so many medical compounds or ingredients that we don’t know exactly what they all are used for.
Explanation:
Encapsulation is the process in which various units of things are encapsulated into a single unit and we don’t know how the other subsystems are working internally.