go top

virtual method invocation

网络释义

  虚方法调用

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

基于28个网页-相关网页

有道翻译

virtual method invocation

虚拟方法调用

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

双语例句

  • 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

  • Just as developers do not worry about the overhead of a virtual method dispatch, they will not worry about the invocation overhead of advice.

    就像开发人员不该担心虚拟方法分派的开销一样,他们也不用担心通知的调用开销。

    youdao

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

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

    youdao

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

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

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