You can then store these Settings in static members of the class, making the value available to subsequent messages.
然后,您可以将这些设置保存在类的静态成员中,以便后续的消息可以使用其值。
However, you can define both static and dynamic searches for the same object class if you have a hybrid group with both static and dynamic members.
不过,如果有包含静态成员和动态成员的混合组,您可以为同一对象类同时定义静态搜索和动态搜索。
Another important addition to PHP V5 is support for static members and methods on classes.
PHPV 5中的另一个重要的新功能是支持对类使用静态成员和方法。
Static join points allow aspects to define new members on a class.
静态连接点允许方面定义类上的新成员。
Support for importing constants: This facility allows static methods and fields to be imported, avoiding the need to use fully qualified class names when accessing static members.
支持导入常量:这个特性使静态方法和字段能够被导入,这样在访问静态成员时就不必使用完全限定的类名。
Enclosing type parameters should not be referred to inside static members.
不应在静态成员中引用封闭类型参数。
Now that we have seen some enhancements with static methods and members, let's take a look at some new classes added to a very useful part of PHP V5: the Standard PHP Library.
现在您已经了解了有关静态方法和成员的增强,现在让我们看一看PHPV 5中新添的类,它们构成了非常有用的部分:标准php库。
Using reflection techniques on static members of a type differs slightly from reflecting on instance members of an object.
在类型的静态成员上使用反射技术与在对象的实例成员上进行反射有一点小小的差别。
With singletons implemented as single instances instead of static class members, you can initialize the singleton lazily, creating it only when it is first used.
由于单例对象作为实例存在而不是类的静态成员,所以你能够惰性地初始化单例对象,即只需要在第一次用它的时候才去创建它。
As I alluded to earlier, the CLR does not support the inheritance of static members.
我在前面已经提到过,CLR不支持静态成员的继承。
PHP V5.3 has added several features to enhance the support for static members and methods within a class.
PHPV5.3提供一些特性来增强对类的静态成员和方法的支持。
Since both enums are static, their members can be referred to directly from anywhere in an application, for example as.
由于两个enum都是静态的,因此其成员可以从应用程序中的任何位置直接引用,例如。
Enclosing type parameters in static members.
静态成员中的封闭类型参数。
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),并且还要为该类提供一个私有构造函数,以避免实例创建。
In init , I add the texture coordinates that are defined as the class's static members to the VertexBuffer.
在init中,向VertexBuffer增加了定义为类的静态成员的纹理坐标。
The following utility methods are public static members of the com.ibm.wac.AccessibleUtils class.
下列实用程序方法是com .ibm . wac . AccessibleUtils类的publicstatic成员。
The discussion and the sample program are limited to non-static data members and virtual functions.
讨论和示例程序都只限于非静态数据成员和虚函数。
This is true for both static members and instance members.
对于静态成员和实例成员来说,都是正确的。
You also cannot derive from Static1, or add any non-static members to the class.
您也不能从Static1派生,或者向该类添加任何非静态成员。
Static members exists with the defining Class not with any object.
静态成员的类定义存在不与任何对象。
They were added to the language to specifically address the difficulties involved with initializing static members in other languages.
它们被加入到语言中来,对在其它语言中涉及到的和初始化静态成员相关的困难,进行了特殊的描述。
Static initializers and static constructors provide the cleanest, clearest way to initialize static members of your class.
静态初始化器和静态构造函数提供了最洁净的、最间接的方式来初始化类的静态成员。
Therefore, they should be declared as static members of the class.
因此,应该将它们声明为此类的静态成员。
Oh man, this is getting tiring: Static members are NOT implemented in object.
哦,这是让人疲惫:静态成员不实施对象。
只包含静态成员。
Note though, at the expense of repeating myself, that static members are associated with the Class, not the object.
需要注意的是,在重复自己的费用,静态成员与类关联的对象,不。
To demonstrate static members, consider a class that represents a company employee.
为了说明静态成员,请看一个表示公司雇员的类。
Do static members enter objects?
静态成员输入的对象吗?
Basically, how are static members implemented in objects, and how do they change? And can they only be manipulated with static methods?
基本上,静态成员实施的对象如何,以及他们如何改变?和他们只能进行静态方法?
Basically, how are static members implemented in objects, and how do they change? And can they only be manipulated with static methods?
基本上,静态成员实施的对象如何,以及他们如何改变?和他们只能进行静态方法?
应用推荐