Revature interview question

Explain encapsulation and give an example.