generics

Go4Expert Member
28Aug2007,18:04   #1
sivaprasadnkv's Avatar
what is generic
where we have to use that generics
Go4Expert Founder
28Aug2007,20:01   #2
shabbir's Avatar
Using Generics, we can create class templates that support any type. When we instantiate that class, we specify the type we want to use, and from that point on, our object is "locked in" to the type we chose. Something like Templates in C++