Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 668 Bytes

File metadata and controls

16 lines (11 loc) · 668 Bytes
title slug l10n
基于原型编程
Glossary/Prototype-based_programming
sourceCommit
ada5fa5ef15eadd44b549ecf906423b4a2092f34

{{GlossarySidebar}}

基于原型编程是一种{{Glossary("OOP", "面向对象编程")}}风格。在其中,我们不会显式地定义{{Glossary('Class', '类')}},而会通过向其他类的实例(对象)中添加属性和方法(甚至偶尔向空对象添加)来创建类。

简单来说,这种风格是在不定义{{Glossary('Class', '类')}}的情况下创建一个{{Glossary('Object', '对象')}}。

参见