Tech Mahindra interview question

oops and method overloading, method overriding