Siemens Interview Question

Explain oops concepts via code