• If you shadow the same base class element with more than one element in your derived class, the shadowing elements become overloaded versions of that element.

    如果派生中的多个元素隐藏同一个类元素,隐藏元素将变为元素重载版本

    youdao

  • In such a case, shadowing is defeated and the compiler resolves any reference to the same element it would have if there had been no shadowing.

    这种情况下隐藏会失败并且如果以前没有隐藏,编译任何引用解析包含的同一个元素

    youdao

  • Both shadowing and overriding redefine an inherited element, but there are significant differences between the two approaches.

    隐藏重写都重新定义继承元素两种方法之间很大差异

    youdao

  • Shadowing and overriding are both used when a derived class inherits from a base class, and both redefine one declared element with another.

    隐藏重写派生继承类时使用并且另外元素重定义已声明的元素。

    youdao

  • Shadowing and overriding are both used when a derived class inherits from a base class, and both redefine one declared element with another.

    隐藏重写派生继承类时使用并且另外元素重定义已声明的元素。

    youdao

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

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

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