SAP interview question

Write a code for encapsulation