Bounded Types

Back to Generics - Parametric Polymorphism

Constraints on type parameters that restrict which types can be used. Bounds specify that a type parameter must implement certain interfaces or extend certain classes (e.g., <T extends Comparable<T>> in Java), enabling operations specific to the bound.

type-systems generics bounds