Encapsulation

Encapsulation is packing or combining two or more items in one unit. The concept of encapsulation is used in object oriented programming. Encapsulation is closely related to information hiding.

Encapsulation of data and procedure(methods) in oop
Encapsulation definition
The bundling of data and procedures(functions) into a single unit(called class) is known as encapsulation.

Class is an example of encapsulation, where various data elements and member functions are wrapped up together.