What programmers do with inheritance in java

ECOOP 2013 - OBJECT-ORIENTED PROGRAMMING(2013)

引用 38|浏览0
暂无评分
摘要
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.
更多
查看译文
关键词
different purpose,longitudinal analysis,open-source java software system,main reason,external code reuse,object-oriented programming language,distinguishing feature,empirical study
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要