Tavant interview question

How do you achieve Method Overrding in Selenium