Do heroes of the same class work together?

Do you benefit defensively by using more than one hero of the same class the way you do using heroes of the same family? I seem to get a lot of fighters and Palladian class heroes. Not many barbarians or monks.

Np, unlike families the classes don’t gain further bonus by having more of their kind.

Thanks for the info.