Not to be confused with Prototype-based programming or Function prototype.
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed. Find sources: "Prototype pattern" – news · newspapers · books · scholar · JSTOR(November 2014) (Learn how and when to remove this message)
This article's tone or style may not reflect the encyclopedic tone used on Wikipedia. See Wikipedia's guide to writing better articles for suggestions.(June 2019) (Learn how and when to remove this message)
(Learn how and when to remove this message)
The prototype pattern is a creational design pattern in software development. It is used when the types of objects to create is determined by a prototypical instance, which is cloned to produce new objects. This pattern is used to avoid subclasses of an object creator in the client application, like the factory method pattern does, and to avoid the inherent cost of creating a new object in the standard way (e.g., using the 'new' keyword) when it is prohibitively expensive for a given application.
To implement the pattern, the client declares an abstract base class that specifies a pure virtual clone() method. Any class that needs a "polymorphic constructor" capability derives itself from the abstract base class, and implements the clone() operation.
The client, instead of writing code that invokes the "new" operator on a hard-coded class name, calls the clone() method on the prototype, calls a factory method with a parameter designating the particular concrete derived class desired, or invokes the clone() method through some mechanism provided by another design pattern.
The mitotic division of a cell — resulting in two identical cells — is an example of a prototype that plays an active role in copying itself and thus, demonstrates the Prototype pattern. When a cell splits, two cells of identical genotype result. In other words, the cell clones itself.[1]
^Duell, Michael (July 1997). "Non-Software Examples of Design Patterns". Object Magazine. 7 (5): 54. ISSN 1055-3614.
The prototypepattern is a creational design pattern in software development. It is used when the types of objects to create is determined by a prototypical...
called prototypes. The term may also refer to the Prototype Javascript Framework. Additionally, the term may refer to the prototype design pattern. Continuous...
representations. factory method pattern, which allows a class to defer instantiation to subclasses. prototypepattern, which specifies the kind of object...
singleton pattern can also be used as a basis for other design patterns, such as the abstract factory, factory method, builder and prototypepatterns. Facade...
woodland pattern, an arid regions pattern, a winter operations pattern, and a multi-terrain pattern. CADPAT was the first digital camouflage pattern to be...
similar to a particular mental image one has of a tiger (prototype matching). This type of pattern recognition can result in apophenia based on the fact...
printing) is a form of 3D printing technology used for creating models, prototypes, patterns, and production parts in a layer by layer fashion using photochemical...
Rapid prototyping is a group of techniques used to quickly fabricate a scale model of a physical part or assembly using three-dimensional computer aided...
blob-like "analog" camouflage pattern that was essentially a blue, black, and gray version of the US Woodland. The other prototype variant, known as the NWU-D...
In software engineering, a design pattern describes a relatively small, well-defined aspect (i.e. functionality) of a computer program in terms of how...
Prototype theory is a theory of categorization in cognitive science, particularly in psychology and cognitive linguistics, in which there is a graded...
The patterns showed promise but were never adopted. Prototype urban variant of US Woodland pattern A Ferret Scout Car in "Berlin camouflage" Prototype M84...
The Universal Camouflage Pattern (UCP) is a digital military camouflage pattern formerly used by the United States Army in their Army Combat Uniform. Technicians...
Server/Transact-SQL there is the ISNULL function that follows the same prototypepattern: ISNULL(possibly_null_value, 'value if null'); Attention should be...
for the MARPAT pattern was filed on 19 June 2001, whereas the patent for the MCCUU uniform was filed on 7 November 2001. Early prototypes of the MARPAT...
Police Department, and the Oregon State Police SWAT team. An early prototype Scorpion pattern uniform on display at the Pentagon in May 2002 DEA FAST agents...
Prototype creates objects by cloning an existing object. Singleton restricts object creation for a class to only one instance. Structural patterns concern...
certain common elements, or prototypepatterns, that can be identified. There is a small number of basic, primary, or prototype emotions. All other emotions...
Reaction–diffusion systems have attracted much interest as a prototype model for pattern formation. Patterns such as fronts, hexagons, spirals, stripes and dissipative...
proximity beam lithography. The stencil mask can then be used as a prototype to create pattern media. In 2014, Ricardo Ruiz of Hitachi Global Storage Technologies...
". "RCA'S FIRST ICONOSCOPE CAMERAS & THE PROTOTYPE". "RCA's Television Field Trials". "RCA / NBC test pattern #1 - Newly established 441-line system (up...