When we are using
WebDriver driver = new ChromeDriver();
driver object will show methods of only WebDriver interface or ChromeDriver methods plus extra methods created in RC, Chromium or Chrome?
To understand I did some homework let me know where I went wrong.
- Interface - SuperInterface
- Interface - ChildSuperInterface extends SuperInterface
- Class - SuperClass implements ChildSuperInterface
- Class - ChildSuperClass extends SuperClass
I created some extra methods in
When I have created a separate class name
WorkOnClass and create object driver1 in it. driver1 shows only methods of interface
ChildSuperInterface. Not showing extra methods created in parent or child class SuperClass and ChildSuperClass.
ChildSuperInterface driver1 = new ChildSuperClass();
Need more understanding of this if you can help. Thanks in advance.