Inheritance usage patterns in open-source systems

Jamie Stevenson, Murray I. Wood

Research output: Contribution to conferencePaperpeer-review

1 Citation (Scopus)
295 Downloads (Pure)

Abstract

This research investigates how object-oriented inheritance is actually used in practice. The aim is to close the gap between inheritance guidance and inheritance practice. It is based on detailed analyses of 2440 inheritance hierarchies drawn from 14 open-source systems. The original contributions made by this paper concern pragmatic assessment of inheritance hierarchy design quality. The findings show that inheritance is very widely used but that most of the usage patterns that occur in practice are simple in structure. They are so simple that they may not require much inheritance-specific design consideration. On the other hand, the majority of classes defined using inheritance actually appear within a relatively small number of large, complex hierarchies. While some of these large hierarchies appear to have a consistent structure, often based on a problem domain model or a design pattern, others do not. Another contribution is that the quality of hierarchies, especially the large problematic ones, may be assessed in practice based on size, shape, and the definition and invocation of novel methods – all properties that can be detected automatically.
Original languageEnglish
Number of pages11
DOIs
Publication statusPublished - 30 May 2018
Event40th International Conference on Software Engineering - Chalmers University of Technology, Gothenburg, Sweden
Duration: 30 May 20181 Jun 2018
https://www.icse2018.org/

Conference

Conference40th International Conference on Software Engineering
Abbreviated titleICSE18
Country/TerritorySweden
CityGothenburg
Period30/05/181/06/18
Internet address

Keywords

  • object oriented programming
  • inheritance
  • open-source
  • design guidance

Fingerprint

Dive into the research topics of 'Inheritance usage patterns in open-source systems'. Together they form a unique fingerprint.

Cite this