In this fascinating book called Game Programming Patterns, in the Prototype example, the author shows how to use generic class to spawn a monster in a game.
Disclaime