Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 329 Bytes

File metadata and controls

17 lines (11 loc) · 329 Bytes

Generics

Certain types of classes, like growable arrays, are simply holders of data.

That is, almost none of how they work has to change to store different kinds of data.

Generics help us make these generically useful containers.

class Box<T> {
    T value;
}