此外,这个类包含将对象实例系列化到Xml的ToXml方法。
In addition, the class contains the ToXml method, which serializes the object instance to XML.
方法.validate要做进一步的检查,以确保初始化实例所用的对象属于. _ order中指定的相应类。
The method.validate performs some further checks to make sure that the objects the instance was initialized with belong to the corresponding classes specified in._order.
ActiveRecord类使用abstract修饰符来确保代码不会实例化一个 ActiveRecord对象。
The ActiveRecord class uses the abstract modifier to ensure that coders can't instance an ActiveRecord object.
UDDI请求类使Python客户机具有为实例化的请求对象设置请求参数的能力,请求参数由uddi基对象组成。
They provide a Python client the ability to set request parameters consisting of UDDI base objects for the instantiated request object.
某些实例对象就是类本身,并且所有的类都是相应元类的实例,甚至类也只能通过实例化机制生成。
Some instance objects are themselves classes; and all classes are instances of a corresponding metaclass. Even classes only come into existence through the instantiation mechanism.
当框架装入这个插件时,会创建该插件类的实例,使它有机会初始化全局对象。
The framework creates an instance of the plug-in class when it loads the plug-in, giving it a chance to initialize global objects.
由于单例对象作为实例存在而不是类的静态成员,所以你能够惰性地初始化单例对象,即只需要在第一次用它的时候才去创建它。
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.
元素的类型属性指定作为源文档对象要实例化的类。
The type attribute of the element specifies the class to instantiate as the source document object.
清单4展示了一段代码摘录,实例化上文所定义类的对象。
Listing 4 illustrates an excerpt of some code to instantiate objects of the classes defined earlier.
要创建一个线程局部变量,请实例化类ThreadLocal的一个对象。
To create a thread-local variable, you instantiate an object of class ThreadLocal.
要对共享内存中的对象进行实例化,请定义另外一个类Initializer。
To instantiate the object within the shared memory, define an additional class, Initializer.
在setUp方法内,用collaborator类的构造方法所需的实际值实例化对象数组。
Within the setUp method, you instantiate an object array with the actual values the Collaborator class 'constructor needs.
LTMemory类表示这样的内存域,在这里实例化一个对象的时间等于固定的分配时间加上不定的初始化时间。
The LTMemory class represents an area of memory where the time to instantiate an object is the combination of a fixed allocation time and a variable initialisation time.
在反序列的时候如果自定义类在FlashPlayer中,你也可以将先前序列化的对象映射回自定义类实例。
You can also map serialized objects back to custom class instances provided the custom class is in the Flash Player when things are deserialized.
config文件的节点定义了用于处理特殊资源的要实例化的HttpApplication对象类名。
The section of the machine.config file defines the name of the class that the HttpApplication object must instantiate to serve a request for the particular type of resource.
您仍然可以使用元类来增强属性,只需在被实例化的类对象上进行设置,而不是像元类的属性那样。
You can still enforce a attribute value using a metaclass, you just need to set it on the class object being instantiated rather than as an attribute of the metaclass.
重要的是,请注意实例化dbcontroller类对象时,示例servlet将数据库用户ID和密码作为参数进行传递。
It is important to note that the sample servlet passes the database user ID and password as parameters when the DBController class object is instantiated.
首先要实例化这个类来获得cnt对象。
It begins with the instantiation of the class to the CNT object.
Factory方法模式是一个创建的模式,它定义一个用来创建对象的接口,而让子类来决定实例化哪个类。
The Factory Method Pattern is a creational pattern that defines an interface for creating an object but lets subclasses decide which actual class to instantiate.
调用Web服务时,运行代码来以恰当的值初始化所有全局枚举对象(在本例中是创建一个BookTypeInitializer类的实例来完成的)。
When the Web service is called, run code to initialize all the global enumeration objects with proper values (in our case, by creating an instance of the BookTypeInitializer class).
类对象支持两种操作:属性引用和实例化。
Class objects support two kinds of operations: attribute references and instantiation.
创建一个新的对象也叫做实例化,这个对象就是类的一个实例。
Creating a new object is called instantiation, and the object is an instance of the class.
但是如果你有一个摘要方法一非抽象班,你可以实例化类和对象,将未实现的方法,你将无法调用。
However if you had an abstract method in a non-abstract class, you could instantiate the class and get an object, that would have an unimplemented method, which you would be unable to call.
定义一个用于创建对象的接口,让子类决定实例化哪一个类。工厂方法使一个类的实例化延迟到其子类。
Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.
用参数化方法从零件类实例化生成对象,以对象来表示具体的零件;
Using the parametered method, from instancing of class we produce objects which are used to represent concrete parts.
工厂模式定义一个用于创建对象的接口,让子类决定实例化哪一个类。
Factories used to create a model definition of the target interface, an example of the type of decision of which category.
定义一个用于创建对象的接口,让子类决定实例化哪一个类。工厂方法使一个类的实例化延迟到其子类。
Define an interface for creating an object, but let subclass decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.
这意味着,如果一个变量被声明为接口类型,其值可参考,即实例化任何实现接口的类的任何对象。
This means that if a variable is declared to be the type of an interface, its value can reference any object that is instantiated from any class that implements the interface.
类的实例化使用函数符号。只要将类对象看作是一个返回新的类实例的无参数函数即可。例如(假设沿用前面的类)。
Class instantiation USES function notation. Just pretend that the class object is a parameterless function that returns a new instance of the class. For example (assuming the above class).
类的实例化使用函数符号。只要将类对象看作是一个返回新的类实例的无参数函数即可。例如(假设沿用前面的类)。
Class instantiation USES function notation. Just pretend that the class object is a parameterless function that returns a new instance of the class. For example (assuming the above class).
应用推荐