一种是以原型对象为基础产生新的对象。
原型对象以重新给定名字(或引用)的方式被确实的复制了。
The prototype object is copied exactly, but given a different name (or reference).
由于QBE使用原型对象作为其模板来搜索数据,关于其用法有一些简单的规则。
Because QBE USES a prototype object as its template to search for data, there are a few simple rules regarding its usage.
它们是对象原型的属性,但是与状态变量不同,它们具有清单17所示的默认值。
They are properties of the object prototype, but unlike the state variables, they have default values as shown in Listing 17.
某个类的每个对象都有相同的原型。
请记住,原型是一个对象,所以它也是一个关联数组。
Remember that the prototype is an object, so it is also an associative array.
对象原型是定义与有限状态机有关的几乎任何东西的合适位置:状态表、它的操作及其参数。
The object prototype is a good place to define nearly everything related to the finite state machine: the state table, its actions, and their parameters.
实际上,如果每个类本身都是一个对象,那么以上系统更接近基于原型的OOP系统而不是基于类的系统。
Actually, given that each class is itself a perfectly good object, the above system is closer to prototype-based OOP systems than class-based ones.
既然已经连接了所有流行的浏览器中的鼠标事件,对象构造方法已经完整了,可以返回到对象原型了。
Now that you have hooked cursor events in all popular browsers, your object constructor is complete and you can return to the object prototype.
原型模型确保每次检索都会创建单独的对象。
Prototype mode ensures that each retrieval will result in the creation of an independent object.
在每个用户都需要自己的对象时,原型模型最适合。
Prototype mode would be best used in a case where each user needed to have his or her own object.
所有RequiredValidator对象的原型都是一个Validator实例,该实例没有任何属性,因为没有参数传递给Validator构造函数。
The prototype for all RequiredValidator objects is a Validator instance, which has no properties because no parameters are passed to the Validator constructor.
在原型生命周期中,ApacheWink运行时为每个传入请求实例化一个新的对象。
In a prototype life cycle, the Apache Wink run time instantiates a new object for every incoming request.
当调用new操作符时,构造函数就为对象创建一个所谓的原型(prototype);也就是说,它创建了一个 模板(template),从中构建给定类型的对象。
When invoked with the new operator, the constructor function creates what is known as a prototype for an object; that is, it creates a template from which to build objects of the given kind.
Ioke是一个强类型、动态、基于原型的面向对象语言。
Ioke is a strongly typed, extremely dynamic, prototype based object oriented language.
还要注意基于Person原型创建的新对象都有birthdate属性,因此下面的代码是有效的。
Also note that any new objects created based on the Person prototype would have the birthdate property, making the following code valid.
JAXB使用工厂来构造对象类的新实例,而Zeus通过原型使用生成的实现类。
Whereas JAXB USES a factory to construct new instances of an object class, Zeus USES a generated implementation class with prototyping.
每个生成的函数使用一个xhr对象,对象的原型可以在MonitorPage . jsp在其头部导入的xhr . js文件中找到。
Each generated function USES an XHR object whose prototype can be found in the xhr.js file that MonitorPage.jsp imports in its header.
funct是一种调用,但newAnimal却基于animal内的原型构造一个对象。
Funct is an invocation, but new Animal constructs an object based on the prototype in Animal.
表示“UI 32 SeminarSelection Screen ” (“UI32研习班选择屏幕”)的主要UI元素的实例是名称为“:SeminarSelector ”、原型为的匿名对象。
The instance of the major UI element representing "UI32 Seminar Selection Screen" is an anonymous object with the name ": SeminarSelector" and the stereotype.
代理程序把服务器对象(用着色的原型表示)分散在不可见的设定半径的圆上。
The agent distributes the server objects (which appear as circles filled with color) around an invisible circle of set radius.
使用UML和原型(stereotype),甚至可以从一个图同时生成对象模型和xml词汇表(请参阅参考资料中“UML, XMI,andcodegeneration”一文)。
Using UML and stereotypes, it might even be possible to generate both the object model and the XML vocabulary from a single diagram (see the "UML, XMI, and code generation" articles in Resources).
由于对象没有execute方法,下一个将查找对象的原型,然后是原型的原型,依此类推。
Because the object doesn't have an execute method, the next place to look for it is the object's prototype, followed by the prototype's prototype and so on.
这是一个安全的方式复制一个对象的原型吗?
Is this a safe way of copying one objects prototype to another?
你如何命名空间对象在揭示原型模式?
How do you namespace objects in the Revealing Prototype Pattern?
正如前面所介绍的,在诸如rhino之类的基于原型的语言中,可以只创建单个对象,而不是类。
As I previously mentioned, you can create only individual objects, not classes, in prototype-based languages like Rhino.
返回的属性包括对象的实例属性和它从原型链继承而来的属性。
The returned properties are both those that exist on the object instance and those inherited through its prototype chain.
过了一段时间,我正设计的对象拥有了一些我用作原型的图像的品质。
After a certain time, the object I am designing takes on some of the qualities of the images I use as models.
使用:给对象或者类的原型赋值上你的新函数。
Use: : to assign your new function to the prototype of the object or class.
目前常见的几种方法体系有:结构化分析法、原型法和面向对象法。
Currently familiar method systems have Structured systems Analysis and Design, Prototyping method and Object Oriented method.
应用推荐