代 is like the generation. One generation is 一代。 輩 is similar, but it is used with word that represents seniority. The senior is 長輩, the junior is 後輩
代 is like the generation. One generation is 一代。 輩 is similar, but it is used with word that represents seniority. The senior is 長輩, the junior is 後輩