Infosys interview question

Explain OOOPs concepts with examples