title | slug | l10n | ||
---|---|---|---|---|
基于原型编程 |
Glossary/Prototype-based_programming |
|
{{GlossarySidebar}}
基于原型编程是一种{{Glossary("OOP", "面向对象编程")}}风格。在其中,我们不会显式地定义{{Glossary('Class', '类')}},而会通过向其他类的实例(对象)中添加属性和方法(甚至偶尔向空对象添加)来创建类。
简单来说,这种风格是在不定义{{Glossary('Class', '类')}}的情况下创建一个{{Glossary('Object', '对象')}}。
- 维基百科上的基于原型编程