The WordPress function the_post_thumbnail(), which outputs the featured image within the loop accepts two arguments, firstly the size and secondly an array of attributes. One of these attributes can define the class (as well as alt, title etc).

 

<?php the_post_thumbnail( 'thumbnail', array( 'class' => 'class-name' ) ); ?>