• 具有保护可视性成员函数可以与该成员函数在同一个定义任何中定义的其它任何成员函数调用

    A member function with protected visibility can be invoked by any member function in the class in which it is defined or any subclasses of that class.

    youdao

  • 每个测试实例测试放在同一个内,获得成员保护成员访问权

    Put each test case in the same package as the class it's testing to gain access to package and protected members.

    youdao

  • 意味着元素所有私有成员都将首先转储,然后依次是保护成员公共成员

    This means that all the private members of the class element are dumped first, followed by protected and public, respectively.

    youdao

  • 这种方法一个有趣的副作用允许通过闭包访问私有成员保护成员有利于执行单元测试

    One interesting side effect of this approach is that it allows us to access private and protected members of a class via a closure, which can be handy for unit testing classes.

    youdao

  • 不要使用公开保护成员变量,使用属性

    Do not provide public or protected member variables. Use properties instead.

    youdao

  • 许多其他扩展性机制(保护成员成员)要求未密封的。

    Many of the other extensibility mechanisms, such as protected and virtual members, require that a class be unsealed.

    youdao

  • 步骤2中的程序集中保护部分信任调用方使用特定成员应用完全信任这一要求

    Apply a demand for full trust to the specific member or class within the assembly from step 2 that you want protected from partially trusted callers.

    youdao

  • 考虑一种很好的方式,即采用具有成员保护成员密封框架提供资源开销少适用扩展性

    Consider unsealed classes with no virtual or protected members as a great way to provide inexpensive, yet much appreciated, extensibility to a framework.

    youdao

  • 通过中增加一个静态同步方法试图保护中的静态成员变量无效的。

    It is not effective to add a new static synchronized method in a subclass that attempts to protect static fields declared in a superclass.

    youdao

  • 成员严格保护能见度可见声明它们任何派生无论在声明。

    Class members with strict protected visibility are visible within the class in which they are declared, and within any descendent class, regardless of where it is declared.

    youdao

  • 如果显式实现成员功能意在派生特殊化,则一定要提供具有相同功能的保护虚拟成员

    Do provide a protected virtual member that offers the same functionality as the explicitly implemented member if the functionality is meant to be specialized by derived classes.

    youdao

  • 成员用于派生实现通常保护的。

    Members that are intended for use only in the implementation of derived classes are usually protected.

    youdao

  • 只有在通过派生型发生访问时,基类的保护成员派生才是访问的。

    Theprotected keyword is a member access modifier. A protected member is accessible within its class and by derived class instances.

    youdao

  • 只有在通过派生型发生访问时,基类的保护成员派生才是访问的。

    Theprotected keyword is a member access modifier. A protected member is accessible within its class and by derived class instances.

    youdao

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

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

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