• To facilitate this, the plug-in class implements the singleton pattern: It stores a reference to itself in a private class variable.

    为了使一点更方便,插件实现模式(singletonpattern):私有类变量中存储一个自身引用

    youdao

  • Think of the distinction between public and private class members in many programming languages (and enforced unofficially by the _method convention in Python).

    考虑一下许多编程语言公有私有成员之间区别,(并且通过Python中的_ method约定非正式地实施)。

    youdao

  • One possible implementation is to use this method as a hook into your own private class initialization routines that are not already enabled by constructors.

    一个可能的实现方法用作构造函数尚未启用自己的私有初始化例程挂钩

    youdao

  • The argument to the constructor is the fully qualified URL of the metadata service being exposed, which we construct using methods in the private class HostDescriptor.

    构造函数参数是正在显示的元数据服务限定url我们使用私有HostDescriptor中的方法构造了它。

    youdao

  • Also I had private lessons—the teacher would give me one-to-one class for three hour.

    也有私人课程——老师会给我一对一上三个小时的课。

    youdao

  • Mobility was not the dominant working-class strategy for coping with unemployment, nor was assistance from private charities or state agencies.

    流动性不是工人阶级应对失业的主要策略来自私人慈善机构国家机构的援助也不是

    youdao

  • That is, in C++, objects of the same class cannot see one another's private member variables.

    就是说 C++ 中,同一个对象无法看到彼此私有成员变量

    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

  • Marking the base class as "private" allowed the derived class to inherit from it without actually becoming one of them.

    标记私有允许派生基类继承而而无需实际成为 一个基类。

    youdao

  • The customer class can be an abstract base class for a family of different customer types, such as private or business customer.

    客户可以用于许多不同客户类型抽象类,比如说私有客户业务客户。

    youdao

  • A domestic example is the post Office; private postal companies make a profit delivering third-class mail at half what the post Office charges to deliver it a loss.

    一个国内例子国家邮局私人邮政企业对第三类的邮件收费比国家邮局低一半,但仍可以从中盈利,而国家邮局却在赔钱

    youdao

  • Consider taking a class; hiring a private tutor; or learning along with your child, spouse, or friend.

    可以考虑,请家教或者孩子配偶朋友一起

    youdao

  • Instead, I create the class and quickly type the private variables I'll be using in the class, like those in Listing 1.

    相反创建快速类中输入私有变量清单1所

    youdao

  • This example shows the C++ source code that contains a non-class function, a Private member function of a class, and a Public member function of a class.

    这个示例使用 C++源代码包含个非函数、类的一个私有成员函数一个公共成员函数。

    youdao

  • There is a convention in Objective-C to provide private methods on a class by defining a category within the implementation file; this could be a relatively simple addition by using chained templates.

    Objective - C中惯例通过实现文件定义一个类别一个提供了私有方法;通过使用链式模版相关简单附加物

    youdao

  • The reality is that the main() method simply executes a private method, go(), on an instantiated AtomToRdf class.

    实际情况main()方法只是实例化的AtomToRdf执行私有方法go()。

    youdao

  • Not only are the variables private but they are private to the particular instance of the Converter class.

    这些变量不仅私有而且只属于converter特定实例

    youdao

  • As the name suggests, the convert local variable to field refactoring takes a local variable and converts it to a private field of the class.

    正如名称所示这个ConvertLocalVariabletoField重构能够获取本地变量将这个变量转换为此类一个私有字段

    youdao

  • If a class contains only static members, remember to mark the class as static or seal the class (NotInheritable) and give the class a private constructor to avoid instance creation.

    如果包含静态成员则要记得将该类标记静态,或者密封该类(NotInheritable),并且还要该类提供一个私有构造函数避免实例创建

    youdao

  • Properties that are public can be written to and read from outside the class. Properties that are private can only be seen within the object or class context.

    声明public属性可以外部写入读取,声明为private的属性对象上下文中可见

    youdao

  • One of the most useful of these is the PrivateAccessor class, which makes testing private methods a snap regardless of your testing framework of choice.

    其中最有一个就是privateaccessorprivate方法测试变成小菜一碟,无论选择的测试框架是什么。

    youdao

  • Often this means the proxy will need to be an inner class of Person to have access to private fields.

    通常意味着代理需要Person一个内部,以便访问private字段

    youdao

  • It doesn't matter whether the derivation is public, protected, or private: Your class is always noncopyable.

    派生public、protected还是private没有关系:始终noncopyable

    youdao

  • But even as the private sector boomsswelling the middle class and producing billionaires by the fistful — the quality of governance remains abysmal.

    但是即使私营部门繁荣了起来-产生大量中产阶级亿万富翁-但管理却依然十分糟糕

    youdao

  • As with properties, any attempt to call a private method from outside the containing class causes a fatal error.

    属性一样尝试包含外部调用私有方法导致致命错误

    youdao

  • The emirate also has a thriving private-sector middle class, but it consists almost entirely of foreigners.

    酋长国蒸蒸日上私营业中产阶级但是差不多是外国人。

    youdao

  • The emirate also has a thriving private-sector middle class, but it consists almost entirely of foreigners.

    酋长国蒸蒸日上私营业中产阶级但是差不多是外国人。

    youdao

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

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

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