⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 person.cs

📁 东软内部材料(四)asp等相关的教学案例 
💻 CS
字号:
namespace People
{
	///<remarks>
	///The <c>person</c>class defines the salient
	///attributes of every person
	///</remarks>

	public class Person
	{
		private string _firstName;
		private string _lastName;

		///<summary>Default constructor</summary>
		public Person() {}

		///<summary>Constructor using first and last names</summary>
		///<param name="firstName">The first name of the programmer</param>
		///<param name="lastName">The last name of the programmer</param>
		///<seealso cref="string"/>
		public Person(string firstName, string lastName)
		{
			_firstName = firstName;
			_lastName = lastName;
		}

	    ///<value>Defines the first name of the person.</value>
		public string FirstName
		{
			get {return _firstName;}
			set {_firstName = value;}
		}

	    ///<value>Defines the last name of the person.</value>
		public string LastName
		{
			get {return _lastName;}
			set {_lastName = value;}
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -