首页 > U > upcast怎么读,upcast什么意思,upcast短语和例句

upcast怎么读,upcast什么意思,upcast短语和例句

收录时间:2022-09-04 11:21:51

upcast怎么读,upcast什么意思

英 [ˈʌpˌkɑːst]美 [ˈʌpˌkɑːst]
  • n. 向上投掷之物;上抛;排气竖坑
  • adj. 向上的;向上抛的
  • v. 向上投掷,向上抛
[ 复数 upcasts 第三人称单数 upcasts 现在分词 upcasting 过去式 upcast 过去分词 upcast ]

upcast 常用句子

1.When you upcast to a base interface, you can only access the members specified by that interface, just as for upcasting to base classes.

当你上溯到基接口时,你只可以访问由那个接口所指定的成员,就像上溯到基类那样。

2.When a class implements an interface that has multiple base interfaces, objects created from that class can be upcast to any of the base interface types.

当一个类实现有多个基接口的接口时,从这个类生成的对象可以上溯到任何一个基接口。

3.On January 14, President of limited company of giant network group Ms. Liu Wei is in China upcast of game industry annual meeting goes out "win in giant" plan.

1月14日,巨人网络集团有限公司总裁刘伟女士在中国游戏产业年会上抛出“赢在巨人”计划。

4.As for the upcast operator, if the compiler cannot infer a specific target type from the context, it reports an error.

对于向上转换运算符,如果编译器无法根据上下文推断出特定的目标类型,则将报告错误。

5.All you need to do is upcast from the derived class and never look back to see what exact type of object you're dealing with. Everything is handled through polymorphism.

你只需要将对象上传转化为基类对象不需要知道额外的信息,而这些都是通过多态实现的。

6.Since all objects in the class pool are upcast to their common base class, the polymorphism of the method leads to that which object method will be executed can only be ascertained at runtime.

由于所有位于对象池中的对象都被上溯到它们的基类型,方法多态使得只有在运行时刻才能真正确定到底哪个对象的方法被执行。