Newgen Software interview question

encapsulation with example?