📜  什么是向下转换 - 无论代码示例

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

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