This is great Chris! Generics (or templates if you're into C++) are extremely powerful in object-oriented programming. This is a good example of how to implement them easily!
Thanks Jake, trying to explain Generics and coding concepts in a simple way is something I'll be trying to do more of. Most examples go too extreme which can scare people off. This intro if useful should spur people on to find out more. That's why I've added additional resources below the fold.
Just re-reading the opening Wiki definition makes me shudder!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This is great Chris! Generics (or templates if you're into C++) are extremely powerful in object-oriented programming. This is a good example of how to implement them easily!
Thanks Jake, trying to explain Generics and coding concepts in a simple way is something I'll be trying to do more of. Most examples go too extreme which can scare people off. This intro if useful should spur people on to find out more. That's why I've added additional resources below the fold.
Just re-reading the opening Wiki definition makes me shudder!