• 2022-05-29
    Student类中存在String类型name属性,下列Student类的构造方法中,哪个是正确的?
    A: Student(String name){}
    B: Student(String name)
    C: Student(name)()
    D: NewStudent (String name){}
  • 举一反三