Encapsulation
- Encapsulation is the process of binding data members and methods of a program together to do a specific job, without revealing unnecessary details.
- Encapsulation can be defined in two different ways:
Data hiding
Encapsulation is the process of hiding unwanted information, such as restricting access to any member of an object.
Data binding
Encapsulation is the process of binding the data members and the methods together as a whole, as a class.