Nielsen Interview Question

What is encapsulation in object oriented programming and explain how we can accomplish that in code