Introduction to OOP | Chapter 18: Generics : | next | previous | audio | real | text |
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.