Generic Interfaces

Learn how to define and use generic interfaces to specify type parameters.

Interfaces can also be generic, which has similar consequences as it does for classes: the specified type parameters can be used inside the interface body as types for properties, parameters, and result types. A good example is the List interface.

Get hands-on with 1200+ tech skills courses.