Tech Mahindra interview question

Explain OOP concepts with example?