/// <summary>
/// Person 的摘要說明。
/// </summary>
public class Person
{
//初始化個人資訊類
private string name; //使用者姓名
private string sex; //使用者性別
private int age; //使用者年齡
private string address; //詳細地址
private string city; //所在城市
private string province;//所在省份
private string country; //所在國家
private string telephone; //固定電話
private string mobilephone; //手機號碼
private string idCard; //社會安全號碼碼
public Person()
{
//
// TODO: 在此處添加建構函式邏輯
//
}
#region 設定擷取使用者的姓名資訊
public string getName()
{
return name;
}
private void setName(string name)
{
this.name = name;
}
#endregion
#region 設定擷取使用者的性別資訊
public string getSex()
{
return sex;
}
private void setSex(string sex)
{
this.sex = sex;
}
#endregion
#region 設定擷取使用者的年齡資訊
public int getAge()
{
return age;
}
private void setAge(int age)
{
this.age = age;
}
#endregion
#region 設定擷取使用者的詳細地址資訊
public string getAddress()
{
return address;
}
private void setAddress(string address)
{
this.address = address;
}
#endregion
#region 設定擷取使用者的所在城市資訊
public string getCity()
{
return city;
}
private void setCity(string city)
{
this.city = city;
}
#endregion
#region 設定擷取使用者的所在省份資訊
public string getProvince()
{
return province;
}
private void setProvince(string provincey)
{
this.province = province;
}
#endregion
#region 設定擷取使用者的所在國家資訊
private void setCountry(string country)
{
this.country = country;
}
private string getCountry()
{
return country;
}
#endregion
#region 設定擷取使用者的固定電話資訊
private void setTelephone(string telephone)
{
this.telephone = telephone;
}
public string getTelephone()
{
return telephone;
}
#endregion
#region 設定擷取使用者的行動電話資訊
private void setMobilephone(string mobilephone)
{
this.mobilephone = mobilephone;
}
public string getMobilephone()
{
return mobilephone;
}
#endregion
//設定社會安全號碼碼
public string getIdCard()
{
return idCard;
}
//擷取人的社會安全號碼碼
private void setIdCard(string idCard)
{
this.idCard = idCard;
}
}