因此,该原型链可用于实现继承(在后面讨论)。
Therefore, the prototype chain can be used to implement inheritance, as you'll see later.
如果您不使用选项板,那么您仍旧可以将原型应用于类,并且您有机会继承不同的框架类或接口。
If you do not use the palette, you can still apply the stereotype to a class, and you have the opportunity to extend a different framework class or interface.
服务的实现,如一组调用流图所描述的,在设计模型中从继承正确框架类的单个原型化的类开始。
A realization of the service, as described by a set of call flow diagrams, begins in the design model with a single stereotyped class that extends the right framework class.
当然,概要文件(拥有原型)首先也必须要应用要元素包所在的继承路径上(与模型相类似)。
Of course, the profile (that owns the stereotype) itself has to be applied to the element's package hierarchy (most likely to the model itself) first.
InfoQ:看起来Ioke的关键特性之一就是它使用了基于原型的继承。
InfoQ: it seems that one of the key features of Ioke is the fact that it USES prototype based inheritance.
返回的属性包括对象的实例属性和它从原型链继承而来的属性。
The returned properties are both those that exist on the object instance and those inherited through its prototype chain.
将成员从基类复制到与派生类相关联的原型,并沿继承链向上继续执行此过程。
Copies members from the base class to the prototype associated with the derived class, and continues this process up the inheritance chain.
对象的新的实例“继承”了赋予该对象的原型的行为。
New instances of an object "inherit" the behavior of the prototype assigned to that object.
它没有面向类的继承,但是他有面向原型的继承。
It does not have class-oriented inheritance, but it does have prototype-oriented inheritance.
它没有面向类的继承,但是他有面向原型的继承。
It does not have class-oriented inheritance, but it does have prototype-oriented inheritance.
应用推荐