What is the purpose of a class statement or specifying a type on a class?

I have recently come across some code where a class is written specifying a type:

  public class MyClass<T>
   {

   }

OR

Public Class MyClass(Of T)

End Class

I don’t understand the purpose?

I read the MSDN explanations of a class statement but still not quite sure why this would be used?

Anyone with a good explanation?


Source: oop

Leave a Reply