You might even want to get a few friends together and have a semi-private class.
如果你想和几个朋友一起练习,那么你可以参加一个半私人的瑜伽课程。
To facilitate this, the plug-in class implements the singleton pattern: It stores a reference to itself in a private class variable.
为了使这一点更方便,插件类实现单模式(singletonpattern):它在私有类变量中存储一个自身的引用。
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约定非正式地实施)。
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.
一个可能的实现是,将此方法用作构造函数尚未启用的您自己的私有类初始化例程的挂钩。
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中的方法构造了它。
Also I had private lessons—the teacher would give me one-to-one class for three hour.
我也有私人课程——老师会给我一对一上三个小时的课。
Mobility was not the dominant working-class strategy for coping with unemployment, nor was assistance from private charities or state agencies.
流动性并不是工人阶级应对失业的主要策略,来自私人慈善机构或国家机构的援助也不是。
That is, in C++, objects of the same class cannot see one another's private member variables.
也就是说,在 C++ 中,同一个类的对象无法看到彼此的私有成员变量。
In Listing 7, notice the three private attributes in this class.
在清单7中,注意到在这个类里面有三个私有属性。
This means that all the private members of the class element are dumped first, followed by protected and public, respectively.
这意味着类元素的所有的私有成员都将被首先转储,然后依次是被保护的成员和公共的成员。
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.
这种方法的一个有趣的副作用是允许通过闭包访问类的私有成员和受保护成员,这有利于对类执行单元测试。
Marking the base class as "private" allowed the derived class to inherit from it without actually becoming one of them.
将基类标记为 “私有”允许派生类从该基类继承而来,而无需实际成为 一个基类。
Listing 11 is an example of accessing a private method in a class.
清单11展示了对类的私有方法的访问。
Consider taking a class; hiring a private tutor; or learning along with your child, spouse, or friend.
可以考虑报个班,请家教或者和孩子配偶或朋友一起学。
Instead, I create the class and quickly type the private variables I'll be using in the class, like those in Listing 1.
相反,我创建类并快速在类中输入私有变量,如清单1所示。
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++源代码包含一个非类函数、类的一个私有成员函数和一个公共成员函数。
No access outside the class itself to private components.
类自身外部无任何到私有组件的接入。
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中有一个惯例通过在实现文件中定义一个类别为一个类提供了私有的方法;通过使用链式模版这将是相关简单的附加物。
The reality is that the main() method simply executes a private method, go(), on an instantiated AtomToRdf class.
实际情况是main()方法只是在一个实例化的AtomToRdf 类上执行了一个私有方法go()。
The Book class is then defined, with private member variables for each field.
然后定义book类,用私有成员变量代表每个字段。
Not only are the variables private but they are private to the particular instance of the Converter class.
这些变量不仅是私有的,而且只属于converter类的特定实例。
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重构能够获取一个本地变量并将这个变量转换为此类的一个私有字段。
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),并且还要为该类提供一个私有构造函数,以避免实例创建。
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的属性只在对象或类上下文中可见。
Therefore, the trigger handler class will not need the private String ContentStorage.
因此,触发器处理程序类不需要privateString ContentStorage。
It doesn't matter whether the derivation is public, protected, or private: Your class is always noncopyable.
派生是public、protected还是private都没有关系:您的类始终为noncopyable。
But even as the private sector booms — swelling the middle class and producing billionaires by the fistful — the quality of governance remains abysmal.
但是即使私营部门繁荣了起来-产生了大量的中产阶级和亿万富翁-但管理却依然十分糟糕。
But even as the private sector booms — swelling the middle class and producing billionaires by the fistful — the quality of governance remains abysmal.
但是即使私营部门繁荣了起来-产生了大量的中产阶级和亿万富翁-但管理却依然十分糟糕。
应用推荐