The answer to the question is social class.
Social class is defined as a classification concept where people are categorized based on their social and economic statuses. As mentioned in the question, Joshua shares the same social statuses with people in his social class. Social classes are generally hierarchical in nature. Some common examples of social classes are upper, middle, and lower classes.