• Once an object has been upcast to an interface type, only the members specified in the interface can be used.

    一旦对象上溯一个接口类型只有接口指定成员可以使用

    youdao

  • The idea of inheriting from a base class without being able to downcast to it or upcast to the base just seemed silly.

    继承一个无法向下向上转换基类理念是不明智的。

    youdao

  • When you use the upcast operator, the compiler attempts to infer the type you are converting to from the context.

    使用向上转换运算编译会尝试根据上下文推断出转换为的类型

    youdao

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

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

    youdao

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

    上溯接口时,你可以访问那个接口所指定成员上溯那样。

    youdao

  • When a class has implemented an interface, objects created from that class can be upcast to the interface type, as demonstrated by Listing 12-3.

    已经实现了接口时,这个生成对象可以上溯这个接口类型,如清单12-3所示。

    youdao

  • 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.

    实现多个接口接口时,这个生成对象可以上溯任何一个基接口。

    youdao

  • 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日巨人网络集团有限公司总裁刘伟女士中国游戏产业会上抛出“在巨人”计划

    youdao

  • 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.

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

    youdao

  • 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.

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

    youdao

  • 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.

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

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定