Content deleted Content added
List of new generic OO languages complete |
Very minor spelling correction |
||
Line 1:
In [[computer science]], '''generics'''
For example, if one wanted to create a list using generics, a possible declaration would be to say <tt>List<T></tt>, where <tt>T</tt> represented the type. When instantiated, one could create <tt>List<Integer></tt> or <tt>List<Animal></tt>. The list then, is treated as a list of whichever type is specified.
|