Type substitution for object-oriented programming

Authors

  • Jens Palsberg
  • Michael I. Schwartzbach

DOI:

https://doi.org/10.7146/dpb.v19i317.6707

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.

Author Biographies

Jens Palsberg

Michael I. Schwartzbach

Downloads

Published

1990-07-01

How to Cite

Palsberg, J., & Schwartzbach, M. I. (1990). Type substitution for object-oriented programming. DAIMI Report Series, 19(317). https://doi.org/10.7146/dpb.v19i317.6707