1Overriding means same method name and same parameter,
2occur in different class that has inheritance relationship.
3we use method overriding to implement specific functionality to the method.
4
5Example: get method
6WebDriver driver = new ChromeDriver();
7driver.get("URL") ==> opens the url from chrome
8
9WebDriver driver = new FireFoxDriver();
10driver.get("URL") ==> opens the url from Firefox
11
12we can only override instance methods and method override
13takes place in sub class.
14instance method that we are going to override cannot be private and final