📜  java代码示例中的向上转换和向下转换

📅  最后修改于: 2022-03-11 14:52:28.813000             🧑  作者: Mango

代码示例4
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();