Virtusa interview question

Write a code which explains Encapsulation