encapsulation and inheritance in object-oriented programming languages(封装和继承在面向对象编程语言).pdf
- 1、本文档共15页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
encapsulation and inheritance in object-oriented programming languages(封装和继承在面向对象编程语言)
Encapsulation and Inheritance in Object-Oriented Programming Languages
Alan Snyder
Affiliation: Software Technology Laboratory
Hewlett-Packard Laboratories
P.O. Box 10490,
Palo Alto, CA , 94303-0971
(415) 857-8764
Abstract
Object-oriented programming is a practical and useful programming methodology that encourages
modular design and software reuse. Most object-oriented programming languages support data
Abstraction by preventing an object from being manipulated except via its defined external
operations. In most languages, however, the introduction of inheritanceseverely compromises the
benefits of this encapsulation. Furthermore, the use of inheritance itself is globally visible in most
languages, so that changes to the inheritance hierarchy cannot be made safely. This paper
examines the relationship between inheritance and encapsulation and develops requirements for
full support of encapsulation with inheritance.
Introduction.
Object-oriented programming is a practical and useful programming methodology that encourages
modular design and software reuse. One of its prime features is support for data Abstraction, the
ability to define new types of objects whose behavior is defined Abstractly, without reference to
implementation details such as the data structure used to represent the objects.
Most object-oriented languages support data Abstraction by preventing an object from being
manipulated except via its defined external operations. Encapsulation has many advantages in
terms of improving the understandability of programs and facilitating program modification.
Unfortunately, in most object-oriented languages, the introduction of inheritance severely
compromises encapsulation.
This paper examines the issue of encapsulation and its support in object-oriented languages. We
begin by reviewing the concepts of encapsulation and data Abstraction, as realized by most
object-oriented
您可能关注的文档
- coauthor coauthor coauthor affiliation affiliation affiliation(合著作者合著者联系联系联系).pdf
- cognitus advisory services limited(cognitus咨询服务有限公司).pdf
- characteristics and skills of the forensic accountant(法务会计师的特点和技能).pdf
- combustion theory(燃烧理论).pdf
- commentary a perspective on the proposed global professional credential(评论的角度提出全球专业证书).pdf
- commodification and adventure in new zealand tourism(新西兰的商品化和冒险旅游).pdf
- competency approach to accounting(能力的会计方法).pdf
- comprehensive database for facial expression analysis(综合数据库面部表情分析).pdf
- computer adventure games as problem-solving environments(计算机冒险游戏作为解决问题的环境).pdf
- computation and analysis of multiple structural change models(多个结构变化模型的计算和分析).pdf
- employment medical advisory service, health and safety executive summary(就业医疗咨询服务,健康和安全执行概要).pdf
- employment medical advisory service, health and safety executive,(就业医疗咨询服务,健康和安全执行,).pdf
- enhancing k-12 education with alice programming adventures(提高k - 12教育与爱丽丝的编程经历).pdf
- enhancing narrative writing skills through action-adventure video games(通过动作冒险游戏增强叙事写作技巧).pdf
- endogenously chosen boards of directors and their monitoring of the ceo(从内部选择董事会和首席执行官的监控).pdf
- estimating nonresponse bias in mail surveys(邮件调查估算nonresponse的偏见).pdf
- estimating the number of clusters in a dataset via the gap statistic(估计集群的数量在一个数据集通过统计的差距).pdf
- estimating wealth effects without expenditure data— or tears(估计财富效应没有支出数据或眼泪).pdf
- ethical standards for tax practitioners 105 ethical standards for tax practitioners(105年税务从业者道德标准为税务从业者的道德标准).pdf
- ethics education in u. s. accounting practice – a status report(道德教育在美国会计实务u2014u2014一个状态报告).pdf
最近下载
- 《电子商务数据分析与应用》任务8 市场行情数据分析.pptx VIP
- 2025年江苏省徐州市初中学业水平考试全真模拟地理试卷(02).docx VIP
- spss的数据分析报告范例.docx
- (完整版)Hydrus-1D中文说明.doc VIP
- 2025年第二季度廉政党课讲稿:筑牢清廉信念、严守纪律防线,持续为高质量发展营造风清气正的环境.docx VIP
- 山西北方兴安化学工业有限公司招聘193人高频考题难、易错点模拟试题(共100题)附带答案题库大全附答.docx VIP
- 吉利EV300电机控制器电路图.pdf VIP
- 幼儿园中班音乐《大吊车》活动课件.ppt VIP
- 初中语文记叙文阅读专题6、记叙文的表达方式及作用.docx VIP
- 物联网技术在农业中的应用.pptx VIP
文档评论(0)