When to inherit a type: what we do know and what we might not

  • Authors:
  • Chenglie Hu

  • Affiliations:
  • Carroll University, Waukesha, Wisconsin

  • Venue:
  • ACM Inroads
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

Meaningful applications of inheritance are critical in devising good object-oriented solutions. Yet, not being able to use effectively and correctly inheritance in problem solving is perhaps the most significant impediment for students to become competitive object-oriented thinkers. This article provides a summary of common uses of type inheritance. It also describes the situations where type inheritance can be inappropriate or, at least, subject to reevaluation. More importantly, it brings an attention to the distinction between the mechanics and the semantics of inheritance. The article closes with an example that illustrates the use of inheritance in light of other alternatives. Finally, the article briefly discusses the implications.