Whenever more than one function having same functionality, then instead of writing many functions one generic function is sufficient. In Generics, data types are decided at run time.
Syntax:
public void genericName <T> (Ta, Tb)
{
Statement(s)
}
Copyright © 2012. GS dot net - All Rights Reserved - Design by BTDesigner - Proudly powered by Blogger
0 comments :
Post a Comment