What is Encapsulation?
Encapsulation is a process of wrapping of data and methods in a single unit. It also leads data abstraction.
We can implement encapsulation by using access specifiers. We can limit the data or functions that need to be made visible to the user. There are three main access specifiers,