Using prototypical objects to implement shared behavior in object-oriented systems

Author:

Lieberman Henry1

Affiliation:

1. Massachusetts Institute of Technology

Abstract

A traditional philosophical controversy between representing general concepts as abstract sets or classes and representing concepts as concrete prototypes is reflected in a controversy between two mechanisms for sharing behavior between objects in object oriented programming languages. Inheritance splits the object world into classes , which encode behavior shared among a group of instances , which represent individual members of these sets. The class/instance distinction is not needed if the alternative of using prototypes is adopted. A prototype represents the default behavior for a concept, and new objects can re-use part of the knowledge stored in the prototype by saying how the new object differs from the prototype. The prototype approach seems to hold some advantages for representing default knowledge, and incrementally and dynamically modifying concepts. Delegation is the mechanism for implementing this in object oriented languages. After checking its idiosyncratic behavior, an object can forward a message to prototypes to invoke more general knowledge. Because class objects must be created before their instances can be used, and behavior can only be associated with classes, inheritance fixes the communication patterns between objects at instance creation time. Because any object can be used as a prototype, and any messages can be forwarded at any time, delegation is the more flexible and general of the two techniques.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference13 articles.

1. G. M. Binwistle O-I Dahl B. Myhrhaug K. Nygaard. 5imula Be~in. Van Nosu'and Reinhold New York 1973. G. M. Binwistle O-I Dahl B. Myhrhaug K. Nygaard. 5imula Be~in. Van Nosu'and Reinhold New York 1973.

2. Knowledge Programming;Bobrow Daniel;Loops. AI Magazine,1983

Cited by 112 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. VTAG: Virtual Lab for Tree-Adjoining Grammar-Based Research;Information and Communication Technology for Competitive Strategies (ICTCS 2022);2023

2. A Catalog of Design Patterns for Compositional Language Engineering.;The Journal of Object Technology;2022

3. Facet-oriented Modelling;ACM Transactions on Software Engineering and Methodology;2021-05

4. Taming the Merge Operator;Journal of Functional Programming;2021

5. History of Logo;Proceedings of the ACM on Programming Languages;2020-06-12

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3