+ 3
What is generic?why it is used explain briefly?
I can't understand generics method.i don't know why it is declared like <E>,<T>
2 Respostas
+ 12
<T> replace type of argument that you pass to the generic fuction. For example if you pass argument of type double to the fuction, T became double, if you pass string, T became string... It used that you can use same fuction with different type of arguments.
+ 1
k but what is the actual purpose