Infosys Interview Question

Explain oops with the principles