Using Types and Inheritance in Object-Oriented Languages

  • Authors:
  • Daniel C. Halbert;Patrick D. O'Brien

  • Affiliations:
  • -;-

  • Venue:
  • ECOOP '87 Proceedings of the European Conference on Object-Oriented Programming
  • Year:
  • 1987

Quantified Score

Hi-index 0.00

Visualization

Abstract

If the object-oriented style of programming hopes to live up to its potential as an improved methodology for software programming, a clear understanding of how to use types and inheritance is essential. Our experiences with using object-oriented languages and teaching object-oriented techniques to other programmers have shown that effective use of types and inheritance may be problematic. There are no concrete guidelines to assist programmers, and the existing aphorisms often create interpretation problems for novice object-oriented programmers. In this paper we look at how types, subtyping, and inheritance are used in object-oriented languages. We discuss the different ways that types and type hierarchies can be used to structure programs. We illustrate appropriate use of these concepts through examples and develop guidelines to assist programmers in using the object-oriented methodology effectively.