class Person
{
public enum Gender
{
male,female
}
//public int Age;
//public string Name;
//public Gender Genders;
public Person(string name, int age,Gender genders)
{
this.Name = name;
this.Age = age;
this.Genders = genders;
}
我想问,这样写 和单单就定义有什么区别,就因为构造函数是引用类型,所以写烦点也是值得?