• 2022-05-29
    ‎假设student类定义了Name,ClassInfor,StuNumber,利用对象初始化器student类的一个对象并初始化它的属性,下面写法正确的是()‎
    A: student s1 =new student{Name=”ZhangSan”, ClassInfor =”IT201801”, StuNumber =”10000001”};
    B: student s2 =new student{ ClassInfor =”IT201801”, Name=”ZhangSan”, StuNumber =”10000001”};
    C: student s3 =new student{StuNumber =”10000001”};
    D: 以上写法均正确