Tech Mahindra interview question

OOPS concept is asked in interview