• You might even want to get a few friends together and have a semi-private class.

    如果你想和几个朋友一起练习,那么你可以参加一个半私人的瑜伽课程。

    youdao

  • 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

  • In Listing 7, notice the three private attributes in this class.

    在清单7中,注意到在这个类里面有三个私有属性。

    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

  • 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

  • Listing 11 is an example of accessing a private method in a class.

    清单11展示了对类的私有方法的访问。

    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

  • No access outside the class itself to private components.

    类自身外部无任何到私有组件的接入。

    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

  • The Book class is then defined, with private member variables for each field.

    然后定义book类,用私有成员变量代表每个字段。

    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

  • Therefore, the trigger handler class will not need the private String ContentStorage.

    因此,触发器处理程序类不需要privateString ContentStorage。

    youdao

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

    派生是public、protected还是private都没有关系:您的类始终为noncopyable。

    youdao

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

    派生是public、protected还是private都没有关系:您的类始终为noncopyable。

    youdao

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

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

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