• 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

  • 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

  • A member function with private visibility can only be invoked by other member functions in the class in which it is defined, but not in the subclasses.

    具有私有可视性的成员函数只能由与该成员函数在同一个类中定义的其它成员函数调用,而在子类中的成员函数不能调用该成员函数。

    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

  • This business object encapsulates the Notes document in a private instance variable inherited from the BOEntity class, so any direct access to this document and its items is prevented.

    而这个业务对象在从boentity类继承的一个私有实例变量中封装Notes文档,这样可以保护任何对该文档及其项的直接访问。

    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.

    其中最有用的一个就是privateaccessor类,它把对private方法的测试变成小菜一碟,无论选择的测试框架是什么。

    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

  • Brazil offers a case study in the differences between a middle class created by the state and one that owes more to the private sector.

    关于国家催生的中产阶级和更多地归功于私营领域的中产阶级的种种差异,巴西提供了一个鲜活的研究案例。

    youdao

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

    与属性一样,尝试从包含类外部调用私有方法将导致致命错误。

    youdao

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

    与属性一样,尝试从包含类外部调用私有方法将导致致命错误。

    youdao

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

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

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