以上来源于: WordNet
N material cast or thrown up 向上抛掷的东西
ADJ directed or thrown upwards 向上抛的
V to throw or cast up 向上抛
In case of upcasting, the methods of the child class are called.
在案例上,孩子的类的方法被称为。
Thus, casting to a base type is moving up the inheritance diagram: upcasting.
所以,造型就是沿着继承图朝着基类向上:向上造型。
Upcasting is applied automatically when you pass arguments to methods on an object type.
当您向某个对象类型上的方法传递参数时,将自动应用向上转换。
应用推荐