upcast
n. 向上投掷之物;上抛;排气竖坑
adj. 向上的;向上抛的
v. 向上投掷,向上抛
复数 upcasts
第三人称单数 upcasts
现在分词 upcasting
过去式 upcast
过去分词 upcast
例句
Once an object has been upcast to an interface type, only the members specified in the interface can be used.
一旦把一个对象上溯给一个接口类型,只有该接口中指定的成员才可以被使用。
The idea of inheriting from a base class without being able to downcast to it or upcast to the base just seemed silly.
继承一个基类而无法将它向下或向上转换到基类的理念是不明智的。
When you use the upcast operator, the compiler attempts to infer the type you are converting to from the context.
在使用向上转换运算符时,编译器会尝试根据上下文来推断出要转换为的类型。