ALERT

Cisco CloudCenter: Get the Hybrid IT Advantage

Prototype-Based Programming

Definition - 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.

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.

Share this: