C # public class person

Source: Internet
Author: User

///


// abstract of person.
//
public class person
{< br> // initialize the Personal Information class
private string name; // user name
private string sex; // user gender
private int age; // user age
private string address; // URL
private string city; // city
private string province; // province
private string country; // country
private string telephone; // landline phone
private string mobilephone; // mobile phone number
private string idcard; // ID number
Public Person ()
{< br> //
// todo: add the constructor logic here
//
}

# Region settings
Public String getname ()
{
Return name;
}
Private void setname (string name)
{
This. Name = Name;
}
# Endregion

# Region settings
Public String getsex ()
{
Return sex;
}
Private void setsex (string sex)
{
This. Sex = sex;
}
# Endregion

# Region settings
Public int getage ()
{
Return age;
}
Private void setage (INT age)
{
This. Age = age;
}
# Endregion

# Region settings
Public String getaddress ()
{
Return address;
}
Private void setaddress (string address)
{
This. Address = address;
}
# Endregion

# Region settings
Public String getcity ()
{
Return city;
}
Private void setcity (string City)
{
This. City = city;
}
# Endregion

# Region settings
Public String getprovince ()
{
Return province;
}
Private void setprovince (string provincey)
{
This. Province = province;
}
# Endregion

# Region settings
Private void setcountry (string country)
{
This. Country = Country;
}
Private string getcountry ()
{
Return country;
}
# Endregion

# Region settings
Private void settelephone (string telephone)
{
This. Telephone = telephone;
}
Public String gettelephone ()
{
Return telephone;
}

# Endregion

# region setting to obtain the user's mobile phone information
private void setmobilephone (string mobilephone)
{< br> This. mobilephone = mobilephone;
}< br> Public String getmobilephone ()
{< br> return mobilephone;
}< br>
# endregion
// set the ID card number
Public String getidcard ()
{< br> return idcard;
}< br> // the ID card number of the person to be retrieved
private void setidcard (string idcard)
{< br> This. idcard = idcard;
}< BR >}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.