C#构造函数举例
提问人:刘冬梅发布时间:2020-10-13
class Student
{
long id;
char gender;
int classID;
public Student() : this(0, 'F', 0)
{ }
public Student(long aID, char aGender, int aClassID)
{
id = aID;
gender = aGender;
classID = aClassID;
}
}
继续查找其他问题的答案?
相关视频回答
回复(0)
点击加载更多评论>>