单项选择题

有一个类Student,以下为其构造方法的声明,其中正确的是 ()。

A.voidStudent(intx){...}
B.Student(intx){...}
C.s(intx){...}
D.voids(intx){...}