+ 1

Prototype-based programming vs prototype design pattern

What is the difference between "Prototype-based programming" and "prototype design pattern". I was looking at wikipedia and article header said dont confuse with <other> however i couldnt find anything about the differences. I know JS is prototype based, and prototype design pattern is method of copying prototype objects and u can utilize this method in other languages, would it be wrong to say its called Prototype-based programming for relying on prototype design pattern?

15th Dec 2020, 4:30 PM
Ven Zallow
Ven Zallow - avatar
1 Respuesta
+ 2
Prototype-based programming is a style of object-oriented programming in which behaviour reuse is performed via a process of reusing existing objects that serve as prototypes. This model can also be known as prototypal, prototype-oriented, classless, or instance-based programming *WHERE AS* The prototype pattern is a creational design pattern in software development. It is used when the type of objects to create is determined by a prototypical instance, which is cloned to produce new objects. source : internet
20th Dec 2020, 8:33 AM
ADITYA KHANDELWAL
ADITYA KHANDELWAL - avatar