Tech Mahindra interview question

They asked me the oops concepts in java