Program: Write a simple generics class example.
Below example shows how to create a simple generics class. We have created SimpleGeneric class, which accepts single type parameter. Look at the generics class definition, the type parameter should be followed by class name and should contain with in <>, here T defines the type parameter. You can find comments at example itself.
| |||
|
Compilation of already published Articles/Ideas/Problems-Solutions which I faced or came across over the period of time. Largely a place for me to document it as note-to-self. Nothing serious. :)
Wednesday, October 30, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment