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 Specialist
Margaret Rouse
Technology Specialist

Margaret is an award-winning writer and educator known for her ability to explain complex technical topics 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 in 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 to help IT and business professionals to learn to speak each other’s highly specialized languages.