SAP Interview Question

Write a code for encapsulation