Caravel Labs interview question

Explain encapsulation in oops and give a real-world example.