go top

虚方法调用

网络释义

  Virtual Method Invocation

虚方法调用Virtual Method Invocation):在多态情况下,一个引用类型的变量如果声明为父类的类型,但实际引用的是子类对象,则该变量就不能再访问子类中添加的属性和方法...

基于28个网页-相关网页

有道翻译

虚方法调用

Virtual method invocation

以上为机器翻译结果,长、整句建议使用 人工翻译

双语例句

  • 方法调用转换成直接方法调用叫做单形monomorphic调用变换

    Converting a virtual method call to a direct method call is called monomorphic call transformation.

    youdao

  • 例如一个方法调用需要查看接收对象调用以便找出哪个实际目标实现了接收方对象虚方法

    A virtual method invocation, for example, involves looking at the class of the receiver object for the call to discover which actual target implements the virtual method for the receiver object.

    youdao

  • 当然如果层次结构发生变化并且出现另外的目标方法JIT编译器可以更正最初生成代码以便执行调用

    Of course, if the class hierarchy changes and a second target method becomes possible, then the JIT compiler can correct the originally generated code so that the virtual invocation is performed.

    youdao

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

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

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