But do we really know what "Class" means in these cases?
Not nomenclature (Constitution or Starship) but letter designations (Class J and so on)?
It could refer to tonnage size or interstellar capability or something else. Class J starship and a Class J cargo ship may mean they have similar tonnage. Or similar warp capability.