Infosys interview question

Explain oops with the principles