Type substitution for object-oriented programming

  • Authors:
  • Jens Palsberg;Michael I. Schwartzbach

  • Affiliations:
  • Computer Science Department, Aarhus University, Ny Munkegade, DK-8000 Aarhus C, Denmark;Computer Science Department, Aarhus University, Ny Munkegade, DK-8000 Aarhus C, Denmark

  • Venue:
  • OOPSLA/ECOOP '90 Proceedings of the European conference on object-oriented programming on Object-oriented programming systems, languages, and applications
  • Year:
  • 1990

Quantified Score

Hi-index 0.00

Visualization

Abstract

Genericity allows the substitution of types in a class. This is usually obtained through parameterized classes, although they are inflexible since any class can be inherited but is not in itself parameterized. We suggest a new genericity mechanism, type substitution, which is a subclassing concept that complements inheritance: any class is generic, can be “instantiated” gradually without planning, and has all of its generic instances as subclasses.