Computer Science

Define Encapsulation with real world examples:

Objects & Classes

1 Like

Answer

Wrapping of data and functions that operate on that data into a single unit is called Encapsulation. A medical capsule is a real world example of Encapsulation as it keeps the drug safe inside it.

Answered By

1 Like


Related Questions