Cognizant interview question

Explain oops concepts with examples