Pregunta de entrevista de Safran Federal Systems

What is encapsulation and its purpose in object oriented programming.