Skip to content

Glossary: Kotlin Beyond the Basics

generic class

Also written: generic function, generics

A class or function with a type parameter, so it works for any type, such as `Shelf<T>`.

Where the book teaches it

Related terms

type parameterupper bound