SAP Interview Question

How did you handle the OOPS concept in real life scenario with a example code