Codele / Advanced programming

Generics: one code, many types

Write a container once and let it hold any kind of thing, safely. Each box gets a label for the one kind it may hold, and the computer checks that label.

Loading the playable lesson…