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, <em> type substitution</em>, 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.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call