Pergunta de entrevista da empresa Paycom

What is encapsulation and what are its advantages?