Hadrons are classified into two main groups, baryons and mesons, based on their quark composition, which determines their mass and other properties. While charge is a property of particles, the primary classification into these two specific groups is defined by their constituent quark structure, which dictates their mass and spin.