Generic Outside Class
This lesson shows how to use generic outside the concept of classes.
We'll cover the following
Generic with function #
Generic is a concept that is not limited to classes. It can also be used directly on global functions or interfaces. You can have a function that takes generic parameters and also returns a generic type.
Get hands-on with 1400+ tech skills courses.