a language that does not support polymorphism but supports classes code example

Example: where do you use polymorphism in framework

HOW DO YOU IMPLEMENT POLYMORPHISM IN YOUR FRAMEWORK

Set<Integer> set1 = new HashSet<>();
Map<Integer> set2 = new HashMap<>();
List<Integer> mySet = new ArrayList<>();

JavaScriptExecuter js = (JavaScriptExecuter)Driver.getDriver;
TakeScreenshot screen = (TakeScreenshot)Driver.getDriver;

WebDriver driver = new ChromeDriver();
WebDriver driver = new FirefoxDriver();

AppiumDriver driver = new AndroidDriver();

Tags:

Misc Example