?? programmer.cs
字號:
using System;
namespace People
{
///<remarks>
///The <c>programmer</c>class defines the salient
///attributes of every fine programmer.
///<seealso cref="Person">Inherits from person</seealso>
///</remarks>
public class Programmer : Person
{
private int _avgHoursSleepPerNight;
///<summary>Default constructor</summary>
public Programmer(): base()
{
}
///<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 Programmer(string firstName, string lastName): base(firstName, lastName)
{
}
///<summary>Constructor using first and last names and
///the hours of sleep</summary>
///<param name="firstName">The first name of the programmer</param>
///<param name="lastName">The last name of the programmer</param>
///<param name="hoursSleep">The average number of hours of sleep</param>
///<seealso cref="string"/>
///<seealso cref="int"/>
public Programmer(string firstName, string lastName, int hoursSleep): base(firstName, lastName)
{
_avgHoursSleepPerNight = hoursSleep;
}
///<value>Defines the average number of hours of sleep.</value>
public int AvgHoursSleepPerNight
{
get { return _avgHoursSleepPerNight; }
set { _avgHoursSleepPerNight = value; }
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -