All of 和 both of 均为介词短语,可用于复数名词或复数代词之前,例如:
All of the students are hardworking.
所有的学生(名词)都很努力。
All of us are hardworking.
我们大家都很努力。
Both of 的用法虽与 all of 相同,但所修饰的复数名词或代词仅限于两人,两件(事物),例如:
Both of the rooms are clean.
两个房间都是干净的。
Both of them are smart.
他们俩都很聪明。
所以,在使用时,all of something 表示三者(个)以上,而both of something 表示两者(个)。