Assembly language implications of single and multiple inheritance

  • Authors:
  • W. Douglas Maurer

  • Affiliations:
  • Department of Computer Science, The George Washington University, Washington, DC

  • Venue:
  • Journal of Computing Sciences in Colleges
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

We present here an explanation for the underlying efficiency of derived classes in C++ and subclasses in Java, and for the multiple inheritance rules of these languages, by reference to base-displacement addressing in machine language. We argue that this deeper understanding of these concepts has not been presented recently to most computer science students because they have not been required to learn assembly language. It is hoped that our presentation will also be of use to college faculty members who have not considered derived classes or subclasses from an assembly language viewpoint.