It can be used for both class objects and instances of a class.
它可以用于类对象也可以用于类的实例。
Object Invariants are conditions specified for each instances of a class.
对象不变量则为每个实例指定条件。
Indexers allow instances of a class or struct to be indexed just like arrays.
索引器允许类或结构的实例就像数组一样进行索引。
They are instances of a class, and associated with that class is a set of methods.
它们是同一个类的实例,与这个类相关联的是一个方法集,因此例如,我可以说。
Instances of a class have specific values for the properties defined at the class level.
一个类别的例证具有一个在类别层定义的特定属性值。
Much like how all integers are not the same value, different instances of a class are not the same value.
就像所有整数都不是相同的值,不同实例类的不相同的值。
These are instances of a class, and associated with that class are a set of methods things that I can deal with.
但是Python的基本思想是相同的,这是一些一个类的实例,这个类关联了一个方法集,我可以做的一些操作。
Being instances of a class, these labels can have all the metadata you want to assign to them, which gives you a lot more flexibility.
作为类的实例,这些标签可具有所有想要为其指定的元数据,这将为您提供很大的灵活性。
If you want to maintain a single instance of a variable for all instances of a class, you will use static-class member variables to do it.
如果您想为一个类的所有实例维持一个变量的实例,将会用到静态类成员变量。
The singleton pattern is probably one of the most often used OOP design patterns; it restricts the number of object instances of a class to one.
单例模式可能是最常用的OOP设计模式之一了;它限制了一个类的对象实例数只能为1。
Note also that class loaders are listed under their class name; if there are two instances of a class loader, it may not be possible to distinguish between them.
还请注意,类装入器列在它们的类名之下;如果类装入器有两个实例,那么可能无法区分它们。
It can be used to access fields and methods in instances of a class, giving a way of dynamically hooking together classes at runtime without the need for any source code links between the classes.
可用它来访问类实例中的字段和方法,从而提供了一种在运行时将类动态地挂钩在一起,却无需类之间有任何源代码链接的方法。
If you've already pickled instances of a class that needs changing, you'll likely want to retrieve and update those instances so that they continue to function properly with the new class definition.
如果已经对某个类实例进行了pickle,而现在又需要更改这个类,则您可能要检索和更新那些实例,以便它们能在新的类定义下继续正常工作。
It can be used to access fields and methods in instances of a class, providing a way of dynamically hooking together classes at runtime without the need for any source code links between the classes.
它能用于访问类实例中的字段和方法,从而提供了不需要类之间的任何源代码链接就能在运行时将类动态地挂钩在一起的方法。
This class is a singleton, meaning there's only one map of running server instances for all projects.
这是一个惟一的类,也就意味着所有项目正在运行的服务器实例只有一个惟一的映射。
To allow recursion, a collaboration structure is nested within a class specification, which means that all instances of that class will have an internal structure specified by the class definition.
为了允许递归,协作结构被嵌套到类的规范中。这就是说这个类的所有实例都将有一个由类定义的内部结构。
Often developers will add many fields to classes without realizing that each int field they add to a class will be multiplied by a large factor (the number of instances) at run time.
通常,开发人员会为类添加很多字段,而未意识到为类所添加的每个整型字段都会在运行时与一个较大的因数(实例数量)相乘。
The instances of classes inside a class are known as parts.
类之中类的实例就是所谓的部件。
Object pools are used to restrict the number of instances of a certain class.
使用对象池限制特定类的实例的数量。
This has the added benefit of separating singleton code from the class code leaving the flexibility to use several instances of the class or using the class as a singleton.
这样分离出单例结构的代码,将有利于保持按单例模式使用类或不按单例模式使用类的灵活性。
Object diagrams allow you to model the instances of your classes (as objects) in a class diagram in order to describe the behaviour of a system.
对象图允许我们为类图中的类实例(也就是对象)建模,用来描述系统活动。
This instance is a factory responsible for creating instances of class DefaultInformationControl, which will be responsible for managing the information window.
这个实例是一个负责创建类DefaultInformationControl的实例的工厂,所创建的实例将负责管理信息窗口。
The first thing I've done inside the run method is to create two instances of the Alternative class, each with a different array of Guards objects.
在run方法中,要做的第一件事是创建alternative类的两个实例,每个都有一组不同的Guard对象。
Whereas JAXB USES a factory to construct new instances of an object class, Zeus USES a generated implementation class with prototyping.
JAXB使用工厂来构造对象类的新实例,而Zeus通过原型使用生成的实现类。
You can have a SingletonFactory class with a globally accessible map of class names or class objects to singleton instances.
创建一个SingletonFactory类去全局映射类名(或者是类对象)和单实例对象。
Also notice the lack of declarations and the lack of a new operator when creating class instances.
还要注意在创建类实例时没有声明、也没有new运算符。
Get an XPath factory class to provide instances of a vendor-specific XPath implementation.
获得一个XPath工厂,以提供特定于供应商的XPath实例的一个实现。
The pickling of class instances requires a bit more attention than the pickling of simple object types.
与pickle简单对象类型相比,pickle类实例要多加留意。
The pickling of class instances requires a bit more attention than the pickling of simple object types.
与pickle简单对象类型相比,pickle类实例要多加留意。
应用推荐