Capgemini interview question

What are Encapsulation. Write the code