down cast in java ? code example
Example 1: 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();
Example 2: what is downcasting
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();