Prototype-Based Programming

Why Trust Techopedia

What Does Prototype-Based Programming Mean?

Prototype-based programming is a style of programming in which already-created objects are cloned and reused to construct a program or applications.

Advertisements

Its programming context and core framework is similar to an object-oriented programming structure, but it uses a classless inheritance programming style in creating duplicate object instances.

Prototype-based programming is also known as prototypal programming, prototype-oriented programming, classless programming or instance-based programming.

Techopedia Explains Prototype-Based Programming

Prototype-based programming primarily is a programming model that works on the concept of object cloning and prototyping. It utilizes object inheritance, where one object can be reused by another object without the need for creating any parent class. Such as when using "prototype" function/method in JavaScript, an object can be called/used in another program without defining its class. The JavaScript creates a link between the new object and the primary object. The cloned/copied/prototyped object works the same way as the primary object.

Java Script, Action Script, Newton Script and MOO are some prototype-based programming languages.

Advertisements

Related Terms

Margaret Rouse
Technology Expert
Margaret Rouse
Technology Expert

Margaret is an award-winning technical writer and teacher known for her ability to explain complex technical subjects to a non-technical business audience. Over the past twenty years, her IT definitions have been published by Que in an encyclopedia of technology terms and cited in articles by the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine, and Discovery Magazine. She joined Techopedia in 2011. Margaret's idea of a fun day is helping IT and business professionals learn to speak each other’s highly specialized languages.