首页> 外文会议>European conference on object-oriented programming >What Programmers Do with Inheritance in Java
【24h】

What Programmers Do with Inheritance in Java

机译:程序员在Java中如何处理继承

获取原文

摘要

Inheritance is a distinguishing feature of object-oriented programming languages, but its application in practice remains poorly understood. Programmers employ inheritance for a number of different purposes: to provide subtyping, to reuse code, to allow subclasses to customise superclasses' behaviour, or just to categorise objects. We present an empirical study of 93 open-source Java software systems consisting over over 200,000 classes and interfaces, supplemented by longitudinal analyses of 43 versions of two systems. Our analysis finds inheritance is used for two main reasons: to support subtyping and to permit what we call external code reuse. This is the first empirical study to indicate what programmers do with inheritance.
机译:继承是面向对象的编程语言的一个显着特征,但是在实践中对它的应用仍然知之甚少。程序员将继承用于多种不同目的:提供子类型,重用代码,允许子类自定义超类的行为或仅对对象进行分类。我们对包括超过200,000个类和接口的93个开源Java软件系统进行了实证研究,并通过对两个系统的43个版本的纵向分析进行了补充。我们的分析发现,使用继承的主要原因有两个:支持子类型化和允许我们所谓的外部代码重用。这是第一个通过经验研究来表明程序员对继承的处理方式。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号