- Generics allows you to write your class or function in a way that you don't specifically define any particular type.
- So than when you use that class or function you can pass in what type you want it to work with.
- You can define entire class,interface,method,delegate as Generics.
- Example :-
- Output :-