1.Define Encapsulation:

Encapsulation is the process of separating the external aspects of an object from the internal implementation details which should be hidden from other objects. The binding of data and functions together into a single class-type variable is referred to as encapsulation. Encapsulation conceals the functional details of a class from objects that send messages to it