Could you give us example for method overriding as well?
@deepak_saini214 ай бұрын
method overriding, let say you create a webdriver interface with method createdriver(){}; so that each browser like chrome and firefox has different class. in chrome class you implement the webdriver interface and added the createdriver() method and override this with using Webdriver driver= new Chromedriver(); --- with this you are overriding the createdriver() method of interface in Chromedriver & firefox class. this example can cover your interface and method overriding concepts.