Encapsulation refers to the concept of enclosing or wrapping data and the related code or methods in a single unit. It helps to control access to the information and provides a way to organize and maintain code in a logical manner. Basically,
encapsulation is like putting things inside a container to keep them safe and organized.
Full definition