Tech Mahindra interview question

Explain about oops concept