Tech Mahindra interview question

Explain OOPS Concepts in Detail with example?