Revature Interview Question

Explain encapsulation and give an example.