What is a generic class?
A generic class is a class that can take template variable. More info on this site
The example in the above link uses one Template variable for both integers and floating points. If we had to implement it without templates, would would need two classes, one for integer type data and the other for floating type data.