We can and this is where prototype objects come into picture.
我们可以做这张图片中得知prototype对象源来。(译注:图?)
Class management: Prototype includes easier creation and extension of classes and objects.
类管理:Prototype支持更轻松地创建和扩展类和对象。
The prototype for all RequiredValidator objects is a Validator instance, which has no properties because no parameters are passed to the Validator constructor.
所有RequiredValidator对象的原型都是一个Validator实例,该实例没有任何属性,因为没有参数传递给Validator构造函数。
Also note that any new objects created based on the Person prototype would have the birthdate property, making the following code valid.
还要注意基于Person原型创建的新对象都有birthdate属性,因此下面的代码是有效的。
We were able to use Naked Objects to build a very rapid prototype of their model, defining purely anemic entities and then having the services contribute all the actions.
于是我们使用Naked object非常快速地为他们的模型构建了一个原型,原型中定义了完全贫血的实体,并让服务承担所有的动作。
Though all objects can read the properties of their prototype object without any issues, modifying them can cause certain issues.. Why is this so?
尽管所有的对象都能顺利的从prototype对象中读取属性,但是却无法修改它们,为什么会这样呢?
Hence prototype object is the best place to define methods like area which remain the same for all Rectangle objects.
因此prototype对象是一个最理想地方来存储像area这个所有对象都相同的属性。
How do you namespace objects in the Revealing Prototype Pattern?
你如何命名空间对象在揭示原型模式?
Is this a safe way of copying one objects prototype to another?
这是一个安全的方式复制一个对象的原型吗?
If you set prototype, objects you create will inherit attributes and functions for any that you fail to specify.
如此设置prototype之后,您所创建的对象会为未指定的那些对象继承属性和函数。
As I previously mentioned, you can create only individual objects, not classes, in prototype-based languages like Rhino.
正如前面所介绍的,在诸如rhino之类的基于原型的语言中,可以只创建单个对象,而不是类。
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.
当调用new操作符时,构造函数就为对象创建一个所谓的原型(prototype);也就是说,它创建了一个模板(template),从中构建给定类型的对象。
The IAU further resolves that Pluto is a dwarf planet by the above definition and is recognized as the prototype of a new category of Trans-Neptunian Objects.
根据上述的定义,国际天文联会进一步决定将冥王星拨归为矮行星,并成为其中一类海王星外天体的原型。
Inside there is a magical treasure room with a selection of very special objects, such as the prototype for the first Nespresso machine.
其中一个与众不同的珍藏室保存了一系列非常特别的物品,如第一台雀巢胶囊咖啡机的原型。
Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype.
用原型实例指定创建对象的种类,并且通过拷贝这些原型创建新的对象。
Finally, the prototype grasping experiment verified that this device could capture objects of different configurations and sizes in a self-adaptive way.
最后通过样机捕获实验,验证了该装置能够实现不同外形尺寸目标的自适应捕获。
Specify the kinds of objects to create using a prototypical instance, and create new objects by coping this prototype.
用原型实例指定创建对象的种类,并且通过拷贝这些原型创建新的对象。
Each of these models allows some prototype effects to arise, enabling various objects to be classified or categorized in a systematic and reasonable way.
这四类模型以各自不同的方式产生出原型效应,达到对认知客体系统而合理的类属划分即范畴化。
Constructor functions (also called constructors) provide the ability to design and implement your own prototype-based objects.
构造函数提供了一种能力,使用户能设计和实现自己的基于原型的对象。
Specify the kinds of objects to create using a prototypical instance, and create new Object by copying this prototype.
这种模式最首要的应用处景就是低开销的创建一个自力的和原型一模一样的对象。
A prototype chain is a finite chain of objects which is used to implemented inheritance and Shared properties.
原型链是一个由目标构成的有限目标链因为完成担当和同享属性。
A prototype chain is a finite chain of objects which is used to implemented inheritance and Shared properties.
原型链是一个由目标构成的有限目标链因为完成担当和同享属性。
应用推荐