Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the opposite of "prototype"?

Consider the following:

var o = {foo: 'bar'};
var p = Object.create(o);

If o is the prototype of p, then what is p with regard to o?

like image 615
user3025492 Avatar asked Nov 28 '13 07:11

user3025492


People also ask

What is the synonym and antonym of prototype?

noun. ( ˈproʊtoʊˌtaɪp) A standard or typical example. Antonyms. follower unworthy expand increase decentralize decentralise deconcentrate. model example paradigm image epitome.

What does it mean to call someone a prototype?

The prefix prot-, or proto-, comes from Greek and has the basic meaning "first in time" or "first formed." A prototype is someone or something that serves as a model or inspiration for those that come later.


1 Answers

I'm not aware that there is any widespread consensus on a formal term for the object whose prototype is another object, but IMHO the term derived object is acceptable.

The point of prototypal inheritance is that one object inherits from another, or is derived from another. In some classical OO languages, such as C++, you will hear the term derived class, because classes inherit from other classes. Because inheritance is between objects in prototypal languages, I would say that "derived object" makes sense.

like image 157
Ray Toal Avatar answered Sep 28 '22 10:09

Ray Toal