Classes

Author:

Stroustrup Bjarne1

Affiliation:

1. Bell Laboratories, Murray Hill, New Jersey

Abstract

Language constructs for definition and use of abstract data types ease the design and maintenance of large programs. This paper describes the C class concept, an extension to the C language providing such constructs. A class is defined using standard C data types and functions, and it can itself be used as a building block for new classes. A class provides a way of restricting access to a data structure to a specific set of functions associated with it, without incurring significant overheads at compile time or at run time.The C class concept is introduced by small examples of its use, and familiarity with the C language [2] is assumed. Appendix A is a complete small C program using classes.Classes have been in use for more than a year on a dozen PDP11 and VAX UNIX systems [1], and they are currently used for a diverse set of projects on more than 30 systems. Classes are currently implemented by an intermediate pass of the cc compiler, called the class pre-processor, which is invoked when the directive #class is found in a C source file. The class pre-processor is easily ported to a system with a version of the portable C compiler. A Motorola68000 version is in use.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference2 articles.

1. Unix Programmer's Manual Seventh Edition January 1979 Bell Telephone Laboratories Unix Programmer's Manual Seventh Edition January 1979 Bell Telephone Laboratories

2. Kernighan B. W. and Ritchie D. M. The C Programming Language Prentice-Hall 1978 Kernighan B. W. and Ritchie D. M. The C Programming Language Prentice-Hall 1978

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

1. Thriving in a crowded and changing world: C++ 2006–2020;Proceedings of the ACM on Programming Languages;2020-06-12

2. A mechanized semantics for C++ object construction and destruction, with applications to resource management;ACM SIGPLAN Notices;2012-01-18

3. Impact Analysis in Software Evolution;Advances in Computers;2003

4. Ada Programming Language;Encyclopedia of Software Engineering;2002-01-15

5. References;Object-Oriented Design and Programming with C++;1995

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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