Introduction to OOP Chapter 18: Generics : next previous audio real text

Generics

The idea of a generic (or template) is yet another approach to software reuse.

The time, the basic idea is to develop code by leave certain key types unspecified, to be filled in later.

In many ways this is like a parameter that is filled with may different values. Here, however, the parameters are types, and not values.

Generics are used both with functions and with classes.

Intro OOP, Chapter 18, Slide 01