type parameterization
nounUK /taɪp pəˌræmətaɪˈzeɪʃən/
US /taɪp pəˌræmətəˈzeɪʃən/
A way to write code that works with many kinds of things by using a placeholder for the kind.
Type parameterization lets a list hold numbers or words without writing two separate lists.
RELATED WORDS
OTHER MEANINGS
2. In Java, the use of angle brackets to give a class a type placeholder.
List<String> shows type parameterization in Java.
3. In C++, writing templates so one function can work with many data types.
The template function uses type parameterization to sort ints and strings.
4. The act of adding type parameters to a class or function definition.
Type parameterization of the box class made it reusable for any item.