purpose of upcasting and downcasting in java code example
Example: downcasting in java
Downcasting is casting to a subtype,
going down in the inheritance tree.
It is done to access sub class features.
It has to be done manually
(TakeScreenShot)driver).takeScreenShot();